obsidiansystems / nix-thunk

seamless management of source dependencies with nix
BSD 3-Clause "New" or "Revised" License
38 stars 10 forks source link

Change the way we build thunkSource paths #32

Closed madeline-os closed 2 years ago

madeline-os commented 2 years ago

https://github.com/NixOS/nix/issues/6573 seems to be affecting thunkSource when it attempts to grab the source of a thunk that is itself a nix store path. I came across this bug in obelisk, as so:

nix-repl> (p: "${p}/thunk.nix") "${nix-thunk.thunkSource dep/reflex-platform}/nixpkgs"
"/nix/store/ff2cwrd6mflr9mnj5r209gr8mpyaq3qj-source/nixpkgs/thunk.nix"

nix-repl> (p: p + /thunk.nix) "${nix-thunk.thunkSource dep/reflex-platform}/nixpkgs"
error (ignored): error: end of string reached
error: getting status of '/thunk.nix': No such file or directory