a4c9b2595e
Hardcodes nix-shell
instead of /usr/bin/env nix-shell
...
...
... in the ruby shebang test.
2018-04-09 09:36:54 -04:00
9478f88681
Adds nix-shell
test for special-cased ruby interpreter.
...
The test fakes the interpreter only to verify the arguments it would be
given.
2018-04-08 00:45:28 -04:00
12913ccf45
nix-shell: allow symlinks to .drvs
...
This makes persistent shell environments easier to use.
2018-03-16 22:15:24 +00:00
Eelco Dolstra
90948a4e3a
nix-shell/nix-build: Support .drv files again
...
Fixes #1663 .
Also handle '!<output-name>' (#1694 ).
2017-11-24 18:08:35 +01:00
Eelco Dolstra
89ffe1eff9
Fix nix-shell tests
...
The nix-shell fix in 668fef2e4f
revealed
that we had some --pure tests that incorrectly depended on PATH from
config.nix's mkDerivation being overwritten by the caller's PATH.
http://hydra.nixos.org/build/49242478
2017-02-24 17:29:02 +01:00
Eelco Dolstra
c287e797a8
nix-shell: In #! mode, pass the last argument
...
"i < argc - 1" should be "i < argc".
2017-01-03 11:40:51 +01:00
Tuomas Tynkkynen
b501bea25f
tests: Add simple tests for nix-shell
...
nix-shell -A, -p and -i are lightly tested.
2017-01-03 10:11:09 +02:00