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 authored and astro committed Nov 1, 2024
1 parent edcd45c commit 435226d
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 435226d

Please sign in to comment.