pkgs-lib: Make lib overlays be propagated

This is useful because the tests in `pkgs-lib` can mock out certain
`lib` functions like this using a `lib` overlay.
This commit is contained in:
Silvan Mosberger 2024-02-09 18:32:23 +01:00 committed by h7x4
parent 39a779e269
commit 9ebcb6f5db
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -1480,7 +1480,12 @@ with pkgs;
writers = callPackage ../build-support/writers { };
# lib functions depending on pkgs
inherit (import ../pkgs-lib { inherit lib pkgs; }) formats;
inherit (import ../pkgs-lib {
# The `lib` variable in this scope doesn't include any applied lib overlays,
# `pkgs.lib` does.
inherit (pkgs) lib;
inherit pkgs;
}) formats;
testers = callPackage ../build-support/testers { };