From ca5df65cebabb3c084b202e02137189fd2658f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B6per?= Date: Sat, 11 Jan 2025 21:32:05 +0100 Subject: [PATCH 1/2] fix: statically compile docker-slim go binaries --- pkgs/by-name/do/docker-slim/package.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/do/docker-slim/package.nix b/pkgs/by-name/do/docker-slim/package.nix index 20fa9f7faf31c..d094609f06f45 100644 --- a/pkgs/by-name/do/docker-slim/package.nix +++ b/pkgs/by-name/do/docker-slim/package.nix @@ -1,8 +1,8 @@ -{ - lib, - buildGoModule, - fetchFromGitHub, - makeBinaryWrapper, +{ lib +, buildGoModule +, fetchFromGitHub +, makeBinaryWrapper +, }: buildGoModule rec { @@ -18,6 +18,8 @@ buildGoModule rec { vendorHash = null; + env.CGO_ENABLED = 0; + subPackages = [ "cmd/slim" "cmd/slim-sensor" From 341b664232ea9e8253f960a3c3f6ad8806aa31a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B6per?= Date: Sat, 11 Jan 2025 21:41:12 +0100 Subject: [PATCH 2/2] refactor: revert formatting --- pkgs/by-name/do/docker-slim/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/do/docker-slim/package.nix b/pkgs/by-name/do/docker-slim/package.nix index d094609f06f45..b0e24cdf81f76 100644 --- a/pkgs/by-name/do/docker-slim/package.nix +++ b/pkgs/by-name/do/docker-slim/package.nix @@ -1,8 +1,8 @@ -{ lib -, buildGoModule -, fetchFromGitHub -, makeBinaryWrapper -, +{ + lib, + buildGoModule, + fetchFromGitHub, + makeBinaryWrapper, }: buildGoModule rec {