add libs to GEM_PATH

This commit is contained in:
Joel Taylor 2014-08-07 18:46:17 -07:00 committed by Charles Strahan
parent cfff6e8c82
commit 3026d8833d

View file

@ -82,6 +82,12 @@ in ruby.stdenv.mkDerivation (attrs // {
rm $out/${ruby.gemPath}/doc/*/*/created.rid || true
rm $out/${ruby.gemPath}/gems/*/ext/*/mkmf.log || true
mkdir -p $out/nix-support
cat > $out/nix-support/setup-hook <<EOF
addToSearchPath GEM_PATH $out/${ruby.gemPath}
EOF
runHook postInstall
'';