nix: Remove libkrb5 references from static executable

This commit is contained in:
Wolfgang Walther
2024-02-06 10:19:31 +01:00
committed by Wolfgang Walther
parent 4a1b9a4609
commit cc9b725005
+9 -2
View File
@@ -38,8 +38,15 @@ let
buildInputs = prevAttrs.buildInputs ++ [
(pkgsStatic.libkrb5.overrideAttrs (finalAttrs: prevAttrs: {
# disable keyutils dependency, to avoid linking errors
configureFlags = prevAttrs.configureFlags ++ [ "--without-keyutils" ];
configureFlags = prevAttrs.configureFlags ++ [
"--sysconfdir=/etc"
# disable keyutils dependency, to avoid linking errors
"--without-keyutils"
];
postInstall = prevAttrs.postInstall + ''
${pkgsStatic.pkgsBuildHost.removeReferencesTo}/bin/remove-references-to -t $out $out/lib/*.a
'';
}))
];
});