aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-22 15:41:37 +0000
committertv <tv@krebsco.de>2026-11-22 16:59:16 +0100
commit60ab707f2d6678e0754e4889771e5c45680a5916 (patch)
treee43ed4d0341a98872027e4bd3526edde48496132 /pkgs
parente81592e76f48c850a0ef35b8048260c21306a4b2 (diff)
krops populate: flock and patch in PATH, for local targets
populate runs flock, and patch for sources with patches, on the target, which, if it's local, is the machine populate runs on. pkgs.populate puts util-linux and gnupatch into the PATH it gives populate, as it does the other tools populate runs.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/krops/populate.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/krops/populate.nix b/pkgs/krops/populate.nix
index 0cc1606..18c036c 100644
--- a/pkgs/krops/populate.nix
+++ b/pkgs/krops/populate.nix
@@ -1,7 +1,8 @@
# pkgs.populate: given populate's arguments, it checks them, and returns a
# script running populate-unwrapped, the program in ../populate, with them,
# the sources as JSON.
-{ coreutils, findutils, git, lib, nix, openssh, pass, passage, rsync, writers
+{ coreutils, findutils, git, gnupatch, lib, nix, openssh, pass, passage, rsync
+, util-linux, writers
, populate-unwrapped
, ...
}@args:
@@ -14,8 +15,8 @@ let
# set. They come through ..., because callPackage would set named ones.
unused = builtins.filter (name: args ? ${name}) [ "dash" "implementation" "jq" ];
unexpected = builtins.attrNames (removeAttrs args ([
- "coreutils" "findutils" "git" "lib" "nix" "openssh" "pass" "passage"
- "rsync" "writers" "populate-unwrapped"
+ "coreutils" "findutils" "git" "gnupatch" "lib" "nix" "openssh" "pass"
+ "passage" "rsync" "util-linux" "writers" "populate-unwrapped"
] ++ unused));
populate =
@@ -33,7 +34,8 @@ let
set -efu
echo + "$0" >&2
PATH=${lib.makeBinPath [
- coreutils findutils git nix openssh pass passage rsync
+ coreutils findutils git gnupatch nix openssh pass passage rsync
+ util-linux
]}''${PATH:+:$PATH}
export PATH
# The sources on a file descriptor of their own, so the commands