Eelco Dolstra
9fc7da1e08
Add test for #4992
2021-07-09 01:18:44 +02:00
Eelco Dolstra
b1cfe8f984
nix develop: Add a test for arrays
2021-07-09 00:32:55 +02:00
regnat
2cf591a134
Make nix develop
work with CA derivations
...
Fix #4823
2021-06-11 13:35:13 +02:00
regnat
56605b4688
Make nix-shell
support content-addressed derivations
...
Resolve the derivation before trying to load its environment −
essentially reproducing what the build loop does − so that we can
effectively access our dependencies (and not just their placeholders).
Fix #4821
2021-06-11 13:32:49 +02:00
Lily Ballard
437189e446
Escape filename given to nix-shell in shebang mode
...
This prevents spaces or other metacharacters from causing nix-shell to
execute the wrong path.
Fixes #4229 .
2020-11-24 15:08:37 -08:00
Sebastian Ullrich
3f24a417da
Add test case for incidentally fixed #4228
2020-11-09 22:43:14 +01:00
Sebastian Ullrich
579b953231
Make test case more precise
...
Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
2020-11-09 22:43:14 +01:00
Sebastian Ullrich
fb7735e4cf
nix develop: Preserve stdin with -c
2020-11-09 22:43:14 +01:00
Eelco Dolstra
00d25e8457
Remove the --indirect flag
...
All GC roots are now indirect.
2020-09-03 11:22:00 +02:00
Eelco Dolstra
017efae01f
Hopefully fix macOS test failure
2020-07-03 13:16:22 +02:00
Eelco Dolstra
5596f879b4
Add test for nix develop
2020-07-02 18:32:45 +02:00
Robert Hensing
9d612c393a
Add inNixShell = true to nix-shell auto-call
...
This is an alternative to the IN_NIX_SHELL environment variable,
allowing the expression to adapt itself to nix-shell without
triggering those adaptations when used as a dependency of another
shell.
Closes #3147
2019-10-27 13:16:02 +01:00
Eelco Dolstra
5064971ded
Fix test failures when $TMPDIR changes
...
(cherry picked from commit c38c726eb5
)
2019-06-15 16:36:33 +02:00
Samuel Dionne-Riel
438e02529d
Allows selectively adding environment variables to pure shells.
...
Includes documentation and test.
2018-08-02 08:21:30 -04:00
Samuel Dionne-Riel
a4c9b2595e
Hardcodes nix-shell
instead of /usr/bin/env nix-shell
...
...
... in the ruby shebang test.
2018-04-09 09:36:54 -04:00
Samuel Dionne-Riel
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
Linus Heckemann
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