Skip to content

Commit

Permalink
public-inbox: fix InlineC
Browse files Browse the repository at this point in the history
Co-authored-by: Alyssa Ross <hi@alyssa.is>
  • Loading branch information
ju1m and alyssais committed Jun 4, 2023
1 parent cbbfccd commit 4fdd015
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/servers/mail/public-inbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, gnumake
, highlight
, libgit2
, libxcrypt
, man
, openssl
, pkg-config
Expand Down Expand Up @@ -137,12 +138,14 @@ buildPerlPackage rec {
installTargets = [ "install" ];
postInstall = ''
for prog in $out/bin/*; do
wrapProgram $prog --prefix PATH : ${lib.makeBinPath [
git
/* for InlineC */
gnumake
stdenv.cc.cc
]}
wrapProgram $prog \
--set NIX_CFLAGS_COMPILE_${stdenv.cc.suffixSalt} -I${lib.getDev libxcrypt}/include \
--prefix PATH : ${lib.makeBinPath [
git
/* for InlineC */
gnumake
stdenv.cc
]}
done
mv sa_config $sa_config
Expand Down

0 comments on commit 4fdd015

Please sign in to comment.