Skip to content

Commit

Permalink
crystal: add PKG_CONFIG_PATH
Browse files Browse the repository at this point in the history
Fixes an issue where crystal was unable to find -lpcre.
  • Loading branch information
donovanglover authored and peterhoeg committed Sep 11, 2023
1 parent 55a8faa commit dac2ac1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/compilers/crystal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dac2ac1

Please sign in to comment.