lol

manifest-tool: add static binary support

+5
+5
pkgs/development/tools/manifest-tool/default.nix
··· 33 33 ldflags="-X main.gitCommit=$(cat .git-revision)" 34 34 ''; 35 35 36 + CGO_ENABLED = if stdenv.hostPlatform.isStatic then "0" else "1"; 37 + GO_EXTLINK_ENABLED = if stdenv.hostPlatform.isStatic then "0" else "1"; 38 + ldflags = lib.optionals stdenv.hostPlatform.isStatic [ "-w" "-extldflags" "-static" ]; 39 + tags = lib.optionals stdenv.hostPlatform.isStatic [ "netgo" ]; 40 + 36 41 passthru.tests.version = testers.testVersion { 37 42 package = manifest-tool; 38 43 };