deadnix icon indicating copy to clipboard operation
deadnix copied to clipboard

Fix warning on nix lazy-trees branch

Open Artturin opened this issue 1 year ago • 2 comments

warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like src = ./.tosrc = builtins.path { path = ./.; name = "source"; }.

Artturin avatar Oct 13 '24 22:10 Artturin

Or, just src = self;?

How can I reproduce that warning?

astro avatar Oct 15 '24 23:10 astro

Or, just src = self;?

Good idea.

How can I reproduce that warning?

You have to use this nix branch https://github.com/NixOS/nix/pull/6530

Artturin avatar Oct 16 '24 19:10 Artturin