I notice this doesn't not always happen. It happens if the "path" points to something that is built. In this case, my nixpkgs source is built by calling applyPatches. It does not happen if the "path" points to something that is fetched directly. e.g. if I use inputs.nixpkgs.url = github.com:nixos/nixpkgs, then points "path" to inputs.nixpkgs, then nix eval does not copy.
Expected behavior
nix should not copy if the input is already in the nix store.
Describe the bug
I have this in the nix registry.json
Running
nix eval 'nixpkgs#hello.meta
produces output"copying /nix/store/<some path>"
every time.I notice this doesn't not always happen. It happens if the "path" points to something that is built. In this case, my nixpkgs source is built by calling
applyPatches
. It does not happen if the "path" points to something that is fetched directly. e.g. if I useinputs.nixpkgs.url = github.com:nixos/nixpkgs
, then points "path" toinputs.nixpkgs
, thennix eval
does not copy.Expected behavior
nix
should not copy if the input is already in the nix store.Priorities
Add :+1: to issues you find important.