summaryrefslogtreecommitdiffstats
path: root/pkgs/rust
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 02:12:58 +0000
committertv <tv@krebsco.de>2026-12-01 02:12:58 +0000
commit8848b846a579685ac027a3d249a78a4ae97b9875 (patch)
tree88ea9e191b2c2b3953e9fb854a5b66ed50d3b0c7 /pkgs/rust
parent83a81db2eaa0ff9374f8d8a55ed74df883b9c33b (diff)
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.
Diffstat (limited to 'pkgs/rust')
-rw-r--r--pkgs/rust/enstate/default.nix11
1 files changed, 4 insertions, 7 deletions
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] Unable to lock slot /tmp/cgit/d9300000.lock: Permission denied (13)