pkgsStatic.gum: fix build
This commit is contained in:
parent
2f790964eb
commit
7df7a3f40d
@ -23,11 +23,17 @@ buildGoModule rec {
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.Version=${version}"
|
||||
];
|
||||
ldflags =
|
||||
[
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.Version=${version}"
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isStatic) [
|
||||
"-linkmode=external"
|
||||
"-extldflags"
|
||||
"-static"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
$out/bin/gum man > gum.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user