Fix nix-shell arguments script-directory relativity #451

Open
opened 2024-07-17 22:19:54 +00:00 by jade · 2 comments
Owner

Currently a nix-shell shebang is evaluated relative to the working directory of the calling process. This essentially does not work if you want to reference any other nix file.

CppNix has some fixes here: https://github.com/NixOS/nix/pull/11058

These could possibly be ported.

Currently a nix-shell shebang is evaluated relative to the working directory of the calling process. This essentially does not work if you want to reference any other nix file. CppNix has some fixes here: https://github.com/NixOS/nix/pull/11058 These could possibly be ported.
qyriad added the
E/easy
label 2024-08-02 16:52:11 +00:00
jade added the
E/help wanted
label 2024-08-18 21:49:34 +00:00
Author
Owner

Issues with the PR to be addressed when porting:

  • nix-shell-shebang-arguments-relative-to-script should be a DeprecatedFeature (infrastructure which CppNix does not have) instead of a separate setting
  • Obviously the stuff that says Nix 2.24 needs fixing
  • Release notes need to be reformatted to use our richer front-matter syntax
  • That whole thing should just be squashed into one commit. There is way too much commit history in there.

Rest of it looks largely okay.

Issues with the PR to be addressed when porting: - nix-shell-shebang-arguments-relative-to-script should be a DeprecatedFeature (infrastructure which CppNix does not have) instead of a separate setting - Obviously the stuff that says Nix 2.24 needs fixing - Release notes need to be reformatted to use our richer front-matter syntax - That whole thing should just be squashed into one commit. There is way too much commit history in there. Rest of it looks largely okay.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2062 ("fix: nix-shell args are relative to script not cwd")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2062", "number": 2062, "kind": "commit message"}], "cl_meta": {"2062": {"change_title": "fix: nix-shell args are relative to script not cwd"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2062](https://gerrit.lix.systems/c/lix/+/2062) ("fix: nix-shell args are relative to script not cwd")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#451
No description provided.