tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
manifest-tool: add static binary support
Thibault Gagnaux
3 years ago
2c5768fe
e3374aff
+5
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
manifest-tool
default.nix
+5
pkgs/development/tools/manifest-tool/default.nix
reviewed
···
33
33
ldflags="-X main.gitCommit=$(cat .git-revision)"
34
34
'';
35
35
36
36
+
CGO_ENABLED = if stdenv.hostPlatform.isStatic then "0" else "1";
37
37
+
GO_EXTLINK_ENABLED = if stdenv.hostPlatform.isStatic then "0" else "1";
38
38
+
ldflags = lib.optionals stdenv.hostPlatform.isStatic [ "-w" "-extldflags" "-static" ];
39
39
+
tags = lib.optionals stdenv.hostPlatform.isStatic [ "netgo" ];
40
40
+
36
41
passthru.tests.version = testers.testVersion {
37
42
package = manifest-tool;
38
43
};