Avoid with lib;
at the top level in pkgs/top-level/release-python.nix
This commit is contained in:
parent
11bf7021af
commit
f5f26f0bbc
1 changed files with 9 additions and 4 deletions
|
@ -21,10 +21,15 @@
|
||||||
}; }
|
}; }
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; };
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
release-lib = import ./release-lib.nix {
|
||||||
|
inherit supportedSystems nixpkgsArgs;
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit (release-lib) mapTestOn pkgs;
|
||||||
|
|
||||||
|
inherit (release-lib.lib) isDerivation mapAttrs optionals;
|
||||||
|
|
||||||
packagePython = mapAttrs (name: value:
|
packagePython = mapAttrs (name: value:
|
||||||
let res = builtins.tryEval (
|
let res = builtins.tryEval (
|
||||||
if isDerivation value then
|
if isDerivation value then
|
||||||
|
@ -33,7 +38,7 @@ let
|
||||||
packagePython value
|
packagePython value
|
||||||
else
|
else
|
||||||
[]);
|
[]);
|
||||||
in lib.optionals res.success res.value
|
in optionals res.success res.value
|
||||||
);
|
);
|
||||||
|
|
||||||
jobs = {
|
jobs = {
|
||||||
|
|
Loading…
Reference in a new issue