Skip to content

Commit

Permalink
nix: Remove libkrb5 references from static executable
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Feb 1, 2024
1 parent 49369f3 commit 26c2f4f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nix/static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
}))
];
});
Expand Down

0 comments on commit 26c2f4f

Please sign in to comment.