Skip to content

Commit

Permalink
Fix warning on nix lazy-trees branch
Browse files Browse the repository at this point in the history
`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"; }`.`
  • Loading branch information
Artturin committed Oct 16, 2024
1 parent b341adb commit 2bd1689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
pkgs.rustPlatform.buildRustPackage {
pname = "deadnix";
version = self.sourceInfo.lastModifiedDate;
src = ./.;
src = self;
cargoLock.lockFile = ./Cargo.lock;
nativeCheckInputs = [ pkgs.clippy ];
doCheck = true;
Expand Down

0 comments on commit 2bd1689

Please sign in to comment.