From cbbd8460a3fd10757e0032b31412aab2cf98e7a5 Mon Sep 17 00:00:00 2001 From: Frede Braendstrup Date: Fri, 3 Oct 2025 13:56:12 +0200 Subject: [PATCH] Fix nix flake double copy setting `src = ./.;` in the nix flake, will cause it to first be copied to the nix store and then copied from the nix store to the source directory of the project. Setting `src = self;`, removes this behaviour and only copies the current directory to the nix store as the base Signed-off-by: Frede Braendstrup --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 97fe9a947a99..98bf498c408d 100644 --- a/flake.nix +++ b/flake.nix @@ -42,7 +42,7 @@ defaultPackage = pkgs.rustPlatform.buildRustPackage { pname = cargoToml.package.name; version = workspaceToml.workspace.package.version; - src = ./.; + src = self; cargoLock = { lockFile = ./Cargo.lock;