From a4540a584d762b000b21cb7e61987c414eb72a1d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 14 Nov 2026 00:27:45 +0000 Subject: populate: layer populate below krops populate is a program of its own, with a Nix library, in pkgs/populate, which krops uses, and which doesn't use krops: - default.nix builds the program, with nix-build there or callPackage, as pkgs.populate-unwrapped. - lib is populate's Nix library: the types of sources and the POSIX types they use, evalSource, flakeFollows, hasGeneratedFlake, and derivesFlake, taking nixpkgs' lib. krops' lib takes them from there, so it provides them as before, and so does lib/types. pkgs.populate, the function from populate's arguments to a script running the program, is krops' own, in pkgs/krops/populate.nix, with checks.nix next to it. It takes the program as populate-unwrapped, which callPackage passes from the overlay; the flake, whose nixpkgs lacks it, passes its own. --- lib/types/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lib/types/default.nix') diff --git a/lib/types/default.nix b/lib/types/default.nix index c4bf517..2023a84 100644 --- a/lib/types/default.nix +++ b/lib/types/default.nix @@ -1,8 +1,3 @@ -{ lib }@args: let { - - body = lib.foldl' (res: path: res // import path args) {} [ - ./populate.nix - ./posix.nix - ]; - -} +# The types of krops' lib that aren't nixpkgs', which populate's Nix library +# defines. +{ lib }: (import ../../pkgs/populate/lib { inherit lib; }).types -- cgit v1.3.1