nix::flake::fetchOrSubstituteTree
That's creative.
Thanks XD
For context I have a bunch of patches on top of upstream nixpkgs, which is applied with applyPatches
and store in nix store. I want all downstream flakes to…
nix::flake::fetchOrSubstituteTree
And normally nix copies the store path if you use the output of a derivation as input, unless you name the derivation "source"
. Basically what I already explained in my OP.
nix::flake::fetchOrSubstituteTree
It implies that we can have a fetcher grab an input (and do so successfully) with a different narHash attribute than the one in originalRef.input
This is not what this assertion…
nix::flake::fetchOrSubstituteTree
sorry I gc'd and doesn't have the original executable anymore. maybe if it happens again i can get the info for you.
nix::flake::fetchOrSubstituteTree
Note I somehow can't reliably reproduce this, perhaps due to caching or some other oddities.
Here is a stack trace for the assertion failure:
(gdb) bt
#0 0x00007a92cc49b7dc in…
nix::flake::fetchOrSubstituteTree