pkgsStatic.gum: fix build (#398033)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user