From 8cc8b7f4307c21f6e14b2ba2b7c65f011dda9f74 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 02:12:58 +0000 Subject: enstate: take the bash completion from the source as built With ~/sync/src/enstate, the package was built from it, but the completion came from inputs.enstate, on the deploying host its own /var/src/enstate, from before the completion existed. --- pkgs/rust/enstate/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'pkgs/rust/enstate') diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix index 30682367..c7683a21 100644 --- a/pkgs/rust/enstate/default.nix +++ b/pkgs/rust/enstate/default.nix @@ -1,14 +1,11 @@ { cleanCargoSource, inputs, installShellFiles, runCommand }: -let - # The populated source, as for the NixOS module. - src = cleanCargoSource "enstate" inputs.enstate; -in - { name = "enstate"; - inherit src; - extraPaths = [ + # The populated source, as for the NixOS module. + src = cleanCargoSource "enstate" inputs.enstate; + # From the source as built, which can be a checkout instead. + extraPaths = { src }: [ (runCommand "enstate-bash-completion" { nativeBuildInputs = [ installShellFiles ]; } /* sh */ '' -- cgit v1.3.1