nix: Remove libkrb5 references from static executable
This commit is contained in:
committed by
Wolfgang Walther
parent
4a1b9a4609
commit
cc9b725005
+9
-2
@@ -38,8 +38,15 @@ let
|
|||||||
|
|
||||||
buildInputs = prevAttrs.buildInputs ++ [
|
buildInputs = prevAttrs.buildInputs ++ [
|
||||||
(pkgsStatic.libkrb5.overrideAttrs (finalAttrs: prevAttrs: {
|
(pkgsStatic.libkrb5.overrideAttrs (finalAttrs: prevAttrs: {
|
||||||
# disable keyutils dependency, to avoid linking errors
|
configureFlags = prevAttrs.configureFlags ++ [
|
||||||
configureFlags = prevAttrs.configureFlags ++ [ "--without-keyutils" ];
|
"--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
|
||||||
|
'';
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user