pkgsStatic.gum: fix build

This commit is contained in:
Peder Bergebakken Sundt 2025-04-12 01:19:56 +02:00
parent 2f790964eb
commit 7df7a3f40d

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