From 1c356e2fa5a3a8b2d68ac4d1ebf8ef67c818d7b7 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 1 Nov 2025 11:22:39 +0100 Subject: [PATCH] pkgs.nixos: pass through `lib` eval-config.nix re-imports lib/default.nix if it isn't passed an instance which can bypass user defined extensions to lib. This is confusing when overlaying nixpkgs with a modified lib and using pkgs.nixos. There are likely more instances of this sort of problem since things are kind of happy to reimport lib, but I haven't spotted anything that seems as serious. Most of those instances are jobset definitions and maintainer scripts which should be fine to assume a vanilla lib. --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc8144c1cfcb..41f5cf4089e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14152,6 +14152,7 @@ with pkgs; configuration: let c = import (path + "/nixos/lib/eval-config.nix") { + inherit lib; modules = [ ( { lib, ... }: