From 1bb69e7357058b4b905ba030a277cd40805eb28f Mon Sep 17 00:00:00 2001 From: electria Date: Mon, 28 Sep 2026 13:07:29 -0700 Subject: [PATCH] build: don't duplicate cargo files in the store --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 62c5763..f7862ee 100644 --- a/flake.nix +++ b/flake.nix @@ -12,14 +12,14 @@ let pkgs = import inputs.nixpkgs { inherit system; }; - cargoToml = fromTOML (builtins.readFile ./Cargo.toml); + src = ./.; + cargoToml = fromTOML (builtins.readFile "${src}/Cargo.toml"); name = cargoToml.package.name; crate = pkgs.rustPlatform.buildRustPackage { - inherit name; - src = ./.; + inherit name src; - cargoLock.lockFile = ./Cargo.lock; + cargoLock.lockFile = "${src}/Cargo.lock"; nativeBuildInputs = with pkgs; [ m4