From 60ab707f2d6678e0754e4889771e5c45680a5916 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 22 Nov 2026 15:41:37 +0000 Subject: 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. --- pkgs/krops/populate.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pkgs') 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 -- cgit v1.3.1