diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-24 12:56:24 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-12-07 15:48:54 +0100 |
commit | 74d0b82f29cbc82e2a35e5a684a947f067851f70 (patch) | |
tree | f2cc202ca9fc6d18b8f1a0b6bac7ea463a4bb72c /pkgs/top-level | |
parent | 82579f80a5e28e2395b0d55ca8385d08dfedc5ea (diff) | |
download | nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar.gz nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar.bz2 nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar.lz nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar.xz nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.tar.zst nixlib-74d0b82f29cbc82e2a35e5a684a947f067851f70.zip |
buildPython*: add updateScript to passthru
All Python packages now have an updateScript. The script calls `update-python-libraries` and passes it the position of the derivation expression obtained using `meta.position`. This works fine in case a Nix expression represents only a single derivation. If there are more in it, `update-python-libraries` will fail.
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a9a1a08efca1..8cdbff37956f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7916,6 +7916,8 @@ in python37Packages = recurseIntoAttrs python37.pkgs; pypyPackages = pypy.pkgs; + update-python-libraries = callPackage ../development/interpreters/python/update-python-libraries { }; + # Should eventually be moved inside Python interpreters. python-setup-hook = callPackage ../development/interpreters/python/setup-hook.nix { }; |