Skip to content

Commit 435226d

Browse files
Artturinastro
authored andcommitted
Fix warning on nix lazy-trees branch
`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"; }`.`
1 parent edcd45c commit 435226d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
pkgs.rustPlatform.buildRustPackage {
1212
pname = "deadnix";
1313
version = self.sourceInfo.lastModifiedDate;
14-
src = ./.;
14+
src = self;
1515
cargoLock.lockFile = ./Cargo.lock;
1616
nativeCheckInputs = [ pkgs.clippy ];
1717
doCheck = true;

0 commit comments

Comments
 (0)