TIL about fetcher cache, thanks. intercepting a bunch of primops is easy (I think it’s just __read{FileType,File,Dir}
?), but there’re also fetchers which can read from disk, including…
“just tracing all the files Nix accesses” is a cool strategy, thanks for the link! it’s somewhat more complex than what I had in mind, but it’s even better. I’ll try to reuse it if I…
I played around with this for a bit, here’re some thoughts:
- it’s kind of easier to implement this out-of-tree than in-tree. I thought to reuse
nix develop
logic, butnix develop
…
another consideration is whether this should work as nix shell
or as nix-shell
. I’d personally like a nix-shell
/nix develop
-like behaviour, so e.g. C headers get propagated. I could just…
I asked about an issue because there’re some design considerations I’d like to discuss (I’ll share them here, but feel free to point me to a more suitable venue).
old-style shell.nix
…
for example, why should nix shell without arguments not read shell.nix and auto-call it with entries of the flake registry?
I am potentially interested in hacking on this part, is there an issue?
That’s fair, it would be a valid replacement for this use case. In general, I think shells can have both updatable and non-updatable inputs (for example, I want a specific version of some…
Oh yes I would like to ban that too. Any usages of the flake registry in flake.nix files should be banned with prejudice.
I think it makes it harder to use flakes for personal devshells that…
withPackages
:e
of a store path should not reload the repl after
I tried to solve it in https://gerrit.lix.systems/c/lix/+/1620/1.
(I think I don’t have the rights to self-assign the issue though)