3
0
Fork 0
forked from mirrors/nixpkgs

maintainers/scripts/check-hydra-by-maintainer: remove pkgs.lib use

This commit is contained in:
Sandro Jäckel 2023-05-22 23:27:19 +02:00
parent 000000491e
commit 290820f2fa
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -3,15 +3,16 @@ let
pkgs = import ./../../default.nix {
config.allowAliases = false;
};
inherit (pkgs) lib;
maintainer_ = pkgs.lib.maintainers.${maintainer};
packagesWith = cond: return: prefix: set:
(pkgs.lib.flatten
(pkgs.lib.mapAttrsToList
(lib.flatten
(lib.mapAttrsToList
(name: pkg:
let
result = builtins.tryEval
(
if pkgs.lib.isDerivation pkg && cond name pkg then
if lib.isDerivation pkg && cond name pkg then
# Skip packages whose closure fails on evaluation.
# This happens for pkgs like `python27Packages.djangoql`
# that have disabled Python pkgs as dependencies.
@ -44,7 +45,7 @@ let
)
)
(name: name)
("")
""
pkgs;
in