diff --git a/pkgs/applications/virtualization/docker-slim/default.nix b/pkgs/applications/virtualization/docker-slim/default.nix index 964d86a445e7..1834d38d7fb1 100644 --- a/pkgs/applications/virtualization/docker-slim/default.nix +++ b/pkgs/applications/virtualization/docker-slim/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "docker-slim"; - version = "1.40.2"; + version = "1.40.3"; src = fetchFromGitHub { owner = "slimtoolkit"; repo = "slim"; rev = version; - hash = "sha256-byB7GTw0hHY4dp3CkMCl6ga/Zn82+K6qmyWy6ezCLoE="; + hash = "sha256-fXB2rMW73F12ZO1sqUIiaky6LDiMasg3QcIgeWwtkOs="; }; vendorHash = null; @@ -17,6 +17,10 @@ buildGoModule rec { nativeBuildInputs = [ makeBinaryWrapper ]; + preBuild = '' + go generate github.com/docker-slim/docker-slim/pkg/appbom + ''; + ldflags = [ "-s" "-w"