aboutsummaryrefslogtreecommitdiffstats
path: root/lib/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-14 04:09:35 +0000
committertv <tv@krebsco.de>2026-11-14 06:23:52 +0100
commit36181e19ccef8d86d53dc5d504eb382c7d9b25fe (patch)
treeecc3e5463ecabe1086ed748335f95fda820191ad /lib/default.nix
parent4ac279ac50b2a842b08d39a875c7c1b89998fd13 (diff)
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.
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix5
1 files changed, 3 insertions, 2 deletions
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 <nixpkgs/lib>, 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 <nixpkgs/lib>, builtins, and krops' own lib, ./with.nix, which krops
+# uses, with nixpkgs' lib from its caller.
let
lib = import <nixpkgs/lib>;
in