mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 16:38:02 +00:00
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:
parent
3df93dbe0e
commit
547b5b7a73
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user