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:
parent
399f43c3d5
commit
9478f88681
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue