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"; }`.`
This commit is contained in:
Artturin 2024-10-14 01:14:18 +03:00 committed by Astro
parent edcd45cf79
commit 435226dd2a

View File

@ -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;