diff --git a/flake.nix b/flake.nix index a0d008a..c3bd57d 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,11 @@ strictDeps = true; __structuredAttrs = true; - src = ./.; + src = lib.sourceFilesBySuffices ./. [ + "Cargo.toml" + "Cargo.lock" + ".rs" + ]; }; crate = @@ -59,7 +63,7 @@ commonArgs // { inherit name; - cargoLock.lockFile = ./Cargo.lock; + cargoLock.lockFile = "${commonArgs.src}/Cargo.lock"; nativeBuildInputs = commonArgs.nativeBuildInputs ++ [ pkgs.autoPatchelfHook