diff options
author | Philip Taron <philip.taron@gmail.com> | 2024-03-05 17:58:20 -0800 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2024-03-08 14:55:07 -0800 |
commit | f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a (patch) | |
tree | 7d213008b2f260d3e4b1f0382f64d5ce68d4fcd7 /pkgs/top-level | |
parent | 11bf7021af1224bdde92453ff4490aa9d2aa5f28 (diff) | |
download | nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar.gz nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar.bz2 nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar.lz nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar.xz nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.tar.zst nixlib-f5f26f0bbc1d344e2849a267349d30c7e0ae2c1a.zip |
Avoid `with lib;` at the top level in pkgs/top-level/release-python.nix
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/release-python.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/top-level/release-python.nix b/pkgs/top-level/release-python.nix index bc54860d45f6..81ea4d3403a7 100644 --- a/pkgs/top-level/release-python.nix +++ b/pkgs/top-level/release-python.nix @@ -21,10 +21,15 @@ }; } }: -with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; }; -with lib; - 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: let res = builtins.tryEval ( if isDerivation value then @@ -33,7 +38,7 @@ let packagePython value else []); - in lib.optionals res.success res.value + in optionals res.success res.value ); jobs = { |