crystal: add PKG_CONFIG_PATH

Fixes an issue where crystal was unable to find -lpcre.
This commit is contained in:
Donovan Glover 2023-07-09 11:52:26 -04:00 committed by Peter Hoeg
parent 55a8faac50
commit dac2ac1d0b

View file

@ -199,6 +199,9 @@ let
wrapProgram $bin/bin/crystal \
--suffix PATH : ${lib.makeBinPath [ pkg-config llvmPackages.clang which ]} \
--suffix CRYSTAL_PATH : lib:$lib/crystal \
--suffix PKG_CONFIG_PATH : ${
lib.makeSearchPathOutput "dev" "lib/pkgconfig" finalAttrs.buildInputs
} \
--suffix CRYSTAL_LIBRARY_PATH : ${
lib.makeLibraryPath finalAttrs.buildInputs
}