diff options
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | pkgs/populate/README.md | 10 | ||||
| -rw-r--r-- | pkgs/populate/docs/design.md | 8 | ||||
| -rw-r--r-- | pkgs/populate/src/populate.rs | 2 |
4 files changed, 14 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 029ca64..f1597a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,8 +17,9 @@ of what got delivered. The sentinel is a directory, which a sentinel file becomes, and the target needs `flock`. - Populate runs shell code with `/bin/sh`. If the target lacks commands - populate runs there, `flock`, rsync, `patch`, Git, or findutils, populate - warns, and gets them from the target's `<nixpkgs>` with `nix-build`. + populate runs there, `flock`, rsync, `patch`, Git, grep, sed, or + findutils, populate warns, and gets them from the target's `<nixpkgs>` + with `nix-build`. `pkgs.populate` puts util-linux and gnupatch in `PATH` as well. - `lib/with.nix` is krops' lib without nixpkgs' lib, which it takes from its caller, e.g. a flake's `nixpkgs.lib`. `pkgs.krops`, `pkgs.populate` diff --git a/pkgs/populate/README.md b/pkgs/populate/README.md index 3a154b6..74181e9 100644 --- a/pkgs/populate/README.md +++ b/pkgs/populate/README.md @@ -26,14 +26,14 @@ fetches the program's dependencies from [crates.io](https://crates.io). ## Requirements populate runs rsync, ssh, Git, Nix, pass, and passage as the sources need -them, found in `PATH`, as well as coreutils and findutils, and a POSIX shell -as `/bin/sh`. +them, found in `PATH`, as well as coreutils, findutils, grep, and sed, and a +POSIX shell as `/bin/sh`. The target needs a POSIX shell as `/bin/sh`, coreutils, Nix, and, if remote, ssh access as root, or, with `--sudo`, as a user who may use `sudo`. populate also runs findutils, `flock`, rsync, `patch` for sources -with `patches`, and Git for `git` sources there. If the target lacks any -of those, populate warns, and gets them from `<nixpkgs>` there with -`nix-build`, once for each run. +with `patches`, and Git, grep, and sed for `git` sources there. If the +target lacks any of those, populate warns, and gets them from `<nixpkgs>` +there with `nix-build`, once for each run. NixOS has all of them but Git, and rsync as long as `environment.defaultPackages` contains it. Features that say so need Nix with flake support (Nix 2.4 or later) on the machine that uses them. diff --git a/pkgs/populate/docs/design.md b/pkgs/populate/docs/design.md index 10e6f4b..4421942 100644 --- a/pkgs/populate/docs/design.md +++ b/pkgs/populate/docs/design.md @@ -99,9 +99,11 @@ For a local target, populate runs commands directly. For a remote target, populate runs commands over ssh, sharing one master connection per target. The commands are fixed POSIX shell snippets, with values passed as positional arguments, so nothing gets quoted into them. -The target needs a POSIX shell, coreutils, findutils, rsync, `patch` for -patches, Git for `git` sources, and Nix; NixOS lacks Git. With `sudo`, -the snippets run via `sudo`. +The target needs a POSIX shell, coreutils, findutils, `flock`, rsync, +`patch` for patches, Git, grep, and sed for `git` sources, and Nix; NixOS +lacks Git. check gets what the target lacks of those but the shell, +coreutils, and Nix from `<nixpkgs>` there. With `sudo`, the snippets run +via `sudo`. Populate runs rsync, Git, ssh, and Nix as programs, found in `PATH`. diff --git a/pkgs/populate/src/populate.rs b/pkgs/populate/src/populate.rs index 322708a..1aaf064 100644 --- a/pkgs/populate/src/populate.rs +++ b/pkgs/populate/src/populate.rs @@ -21,7 +21,7 @@ fn tools(spec: &Spec) -> Vec<&'static str> { tools.extend(["rsync", "rsync"]); } if sources().any(|s| s.kind == "git") { - tools.extend(["git", "git"]); + tools.extend(["git", "git", "grep", "gnugrep", "sed", "gnused"]); } let patched = |s: &&Source| { s.settings |
