Closed Artturin closed 2 weeks ago
warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute likesrc = ./.tosrc = builtins.path { path = ./.; name = "source"; }.
warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like
to
.
Or, just src = self;?
src = self;
How can I reproduce that warning?
Good idea.
You have to use this nix branch https://github.com/NixOS/nix/pull/6530
warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like
src = ./.to
src = builtins.path { path = ./.; name = "source"; }.