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