ruby.withPackages: preserve setup hooks (#72743)

This fixes

    nix-shell -p 'ruby.withPackages (const [])' ruby.devdoc

which otherwise wouldn't find documentation, unlike

    nix-shell -p ruby ruby.devdoc

which would, because ruby has setup hooks to accomodate for this, that
were being masked by the withPackages wrapper.
This commit is contained in:
Alyssa Ross 2019-11-03 22:09:44 +00:00 committed by zimbatm
parent 3df93dbe0e
commit 547b5b7a73

View File

@ -64,6 +64,8 @@ let
rm -f $out/bin/$(basename "$i")
makeWrapper "$i" $out/bin/$(basename "$i") --set GEM_PATH ${gemEnv}/${ruby.gemPath}
done
ln -s ${ruby}/nix-support $out/nix-support
'';
passthru = {