ci/eval/compare: Fix wrong Nixpkgs being used

See https://github.com/NixOS/nixpkgs/pull/488014#issuecomment-4009775318
and https://github.com/NixOS/nixpkgs/issues/497110
This commit is contained in:
Silvan Mosberger
2026-03-13 16:51:18 +01:00
parent b513ab8192
commit ca6ce52e6a
2 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -158,8 +158,10 @@ let
}
);
getMaintainers = callPackage ./maintainers.nix { };
inherit
(callPackage ./maintainers.nix {
(getMaintainers {
affectedAttrPaths = map (a: a.packagePath) (
convertToPackagePlatformAttrs (diffAttrs.changed ++ diffAttrs.removed)
);
+7 -2
View File
@@ -11,6 +11,12 @@
# nix-instantiate --eval --strict --json test.nix -A result | jq
#
# Empty list as an output means success
# Dependencies coming from the CI-pinned Nixpkgs
{
lib,
}:
# Function arguments
{
# Files that were changed
# Type: ListOf (Nixpkgs-root-relative path)
@@ -18,7 +24,7 @@
# Attributes whose value was affected by the change
# Type: ListOf (ListOf String)
affectedAttrPaths,
# Nixpkgs used to check maintainers. Customisable for testing
pkgs ? import ../../.. {
system = "x86_64-linux";
# We should never try to ping maintainers through package aliases, this can only lead to errors.
@@ -27,7 +33,6 @@
config.allowAliases = false;
overlays = [ ];
},
lib,
}:
let
nixpkgsRoot = toString ../../.. + "/";