crystal: fix CRYSTAL_PATH

CRYSTAL_PATH should contain `lib` to make crystal able to find required
libraries installed in current directory.
This commit is contained in:
mingchuan 2017-11-22 15:21:39 +08:00
parent 86c0844d32
commit 817d0a8c5f

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
installPhase = ''
install -Dm755 .build/crystal $out/bin/crystal
wrapProgram $out/bin/crystal \
--suffix CRYSTAL_PATH : $out/lib/crystal \
--suffix CRYSTAL_PATH : lib:$out/lib/crystal \
--suffix LIBRARY_PATH : $libPath
install -dm755 $out/lib/crystal
cp -r src/* $out/lib/crystal/