We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a16fab + 7df7a3f commit c3c450fCopy full SHA for c3c450f
pkgs/by-name/gu/gum/package.nix
@@ -23,11 +23,17 @@ buildGoModule rec {
23
installShellFiles
24
];
25
26
- ldflags = [
27
- "-s"
28
- "-w"
29
- "-X=main.Version=${version}"
30
- ];
+ ldflags =
+ [
+ "-s"
+ "-w"
+ "-X=main.Version=${version}"
31
+ ]
32
+ ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isStatic) [
33
+ "-linkmode=external"
34
+ "-extldflags"
35
+ "-static"
36
+ ];
37
38
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
39
$out/bin/gum man > gum.1
0 commit comments