From 2854de4ef2b45acee31a4362ff1adf52eb2d0c47 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 21:03:43 +0000 Subject: pkgs/rust: clean the packages' sources in the overlay A package file in pkgs/rust names its source as it is; the overlay builds a cleaned copy of it, and checks the plan against the source itself. So the copy can leave Cargo.lock out next to a Cargo.json, as before, while the lock check still has it. A source in the store already, like a fetched one, isn't copied again. --- pkgs/rust/enstate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/rust/enstate/default.nix') diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix index ab39cd41..dd375ddb 100644 --- a/pkgs/rust/enstate/default.nix +++ b/pkgs/rust/enstate/default.nix @@ -1,10 +1,10 @@ -{ cleanCargoSource, inputs, installShellFiles, runCommand }: +{ inputs, installShellFiles, runCommand }: { name = "enstate"; meta.mainProgram = "enstate"; # The populated source, as for the NixOS module. - src = cleanCargoSource "enstate" inputs.enstate; + src = inputs.enstate; # From the source as built, which can be a checkout instead. extraPaths = { src }: [ (runCommand "enstate-bash-completion" { -- cgit v1.3.1