From a7bae0503323c8dd8ff75eeffa727bbdfe9492e0 Mon Sep 17 00:00:00 2001 From: niksingh710 Date: Wed, 4 Jun 2025 00:38:24 +0530 Subject: [PATCH] chore(nix): Fixes the warning log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes the log warning that nix gives. ```log warning: Performing inefficient double copy of path '«github:omerxx/tmux-sessionx/42c18389e73b80381d054dd1005b8c9a66942248?narHash=sha256-SRKI4mliMSMp/Yd%2BoSn48ArbbRA%2Bszaj70BQeTd8NhM%3D»/nix/store/kd1z9c9x1h3yi8r12qj2a5jq45yalwfi-source' to the store. This can typically be avoided by rewriting an attribute like `src = ./.` to `src = builtins.path { path = ./.; name = "source"; }`. ``` --- flake.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0ed3725..5108e8a 100644 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,7 @@ packages.default = pkgs.tmuxPlugins.mkTmuxPlugin { pluginName = "sessionx"; version = "dev"; - - src = ./.; + src = builtins.path { path = ./.; name = "source"; }; nativeBuildInputs = [pkgs.makeWrapper]; postPatch = ''