public-inbox: fix InlineC

Co-authored-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
Julien Moutinho
2023-06-04 13:09:28 +00:00
committed by Alyssa Ross
co-authored by Alyssa Ross
parent cbbfccd312
commit 4fdd015c76
+9 -6
View File
@@ -6,6 +6,7 @@
, gnumake
, highlight
, libgit2
, libxcrypt
, man
, openssl
, pkg-config
@@ -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