pkgsStatic.gum: fix build (#398033)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-17 15:27:48 +02:00
committed by GitHub
+11 -5
View File
@@ -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