Compare commits

...
Author SHA1 Message Date
Tom Bereknyei 1169b75e34 tests: add required file 2023-11-27 14:56:51 -05:00
Tom Bereknyei ba56f8b953 notes: document change in nix-shell behavior 2023-11-27 14:55:09 -05:00
3 changed files with 19 additions and 0 deletions

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
synopsis: ensure nix-shell shebang uses relative path
prs: #5088
description: {
`nix-shell` shebangs use relative paths for files, but expressions were still evaluated using the current working directory. The new behavior is that evalutations are performed relative to the script.
}
+8
View File
@@ -0,0 +1,8 @@
# Release X.Y (202?-??-??)
- Fixed a bug where `nix-env --query` ignored `--drv-path` when `--json` was set.
- Introduced the store [`mounted-ssh-ng://`](@docroot@/command-ref/new-cli/nix3-help-stores.md).
This store allows full access to a Nix store on a remote machine and additionally requires that the store be mounted in the local filesystem.
- [`nix-shell`](../command-ref/nix-shell.md) shebangs now interpret "-E" with relative paths
+4
View File
@@ -0,0 +1,4 @@
#! @ENV_PROG@ nix-shell
#! nix-shell -E "with (import ./shell.nix {}); runCommand \"hi\" {buildInputs = [ruby];} \"\""
#! nix-shell --pure -i ruby
puts ARGV[1]