From 0e0a5d20236a652d82f4d026dd2d38d524c852c8 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 13 Oct 2024 22:36:49 +0300 Subject: [PATCH] Fix warning on nix lazy-trees `warning: Performing inefficient double copy of path '/home/artturin/nixgits/comma/' to the store. This can typically be avoided by rewriting an attribute like `src = ./.` to `src = builtins.path { path = ./.; name = "source"; }`.` --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7b3375a..4ab33e2 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,10 @@ in naersk-lib.buildPackage { pname = "comma"; - root = ./.; + root = builtins.path { + name = "comma-source"; + path = ./.; + }; nativeBuildInputs = with pkgs; [ makeWrapper ]; overrideMain = _: { postInstall = ''