From 36181e19ccef8d86d53dc5d504eb382c7d9b25fe 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. --- lib/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/default.nix') diff --git a/lib/default.nix b/lib/default.nix index 89788e4..46afaae 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,5 +1,6 @@ -# krops' lib: nixpkgs' lib from , builtins, and what krops -# defines, see ./with.nix, which takes nixpkgs' lib from its caller instead. +# krops' lib as krops 1 had it, for backwards compatibility: nixpkgs' lib +# from , builtins, and krops' own lib, ./with.nix, which krops +# uses, with nixpkgs' lib from its caller. let lib = import ; in -- cgit v1.3.1