1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Adds nix-shell test for special-cased ruby interpreter.

The test fakes the interpreter only to verify the arguments it would be
given.
This commit is contained in:
Samuel Dionne-Riel 2018-04-08 00:45:28 -04:00
parent 399f43c3d5
commit 9478f88681
3 changed files with 23 additions and 0 deletions

View file

@ -45,5 +45,12 @@ let pkgs = rec {
bash = shell;
# ruby "interpreter" that outputs "$@"
ruby = runCommand "ruby" {} ''
mkdir -p $out/bin
echo 'printf -- "$*"' > $out/bin/ruby
chmod a+rx $out/bin/ruby
'';
inherit pkgs;
}; in pkgs