From a9ad68526998290bf8203008d6db710727953d20 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 14 Nov 2026 04:09:35 +0000 Subject: krops: use lib/with.nix everywhere, and no with lib/default.nix is for backwards compatibility only, so the examples in the README and ci.nix use lib/with.nix, as klib, with nixpkgs' lib from pkgs. pkgs.populate and its checks name what they use from nixpkgs' lib, builtins, and klib, instead of bringing them into scope with with, and the scenarios inherit what they use from the builder and nixpkgs' lib, which the builder doesn't pass on anymore. Nix tells undefined names when parsing then, and a name means the same wherever it's used. The derivations and the scenarios stay the same. --- pkgs/populate/tests/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkgs/populate/tests/default.nix') diff --git a/pkgs/populate/tests/default.nix b/pkgs/populate/tests/default.nix index 7b37bb3..e0ce469 100644 --- a/pkgs/populate/tests/default.nix +++ b/pkgs/populate/tests/default.nix @@ -40,9 +40,10 @@ let if deploy != null then throw "populate's tests don't deploy" else pkgs.writers.writeDash "populate" /* sh */ '' set -efu - PATH=${lib.makeBinPath (with pkgs; [ - coreutils findutils git nix openssh pass passage rsync - ])}''${PATH:+:$PATH} + PATH=${lib.makeBinPath [ + pkgs.coreutils pkgs.findutils pkgs.git pkgs.nix pkgs.openssh pkgs.pass + pkgs.passage rsync + ]}''${PATH:+:$PATH} export PATH exec ${populate-unwrapped}/bin/populate ${lib.escapeShellArgs ( lib.optional backup "--backup" ++ -- cgit v1.3.1