buildPython*: simplify updateScript

updateScript accepts a list, in which case, it will execute the head with the
tail as arguments. Switching to this style will allow us to get rid of the need
to create extra script doing just that.
This commit is contained in:
Jan Tojnar 2018-12-18 16:02:08 +01:00
parent ca5ee6dfb7
commit e69ee9b53e
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -113,9 +113,6 @@ let self = toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attr
passthru = {
updateScript = let
filename = builtins.head (lib.splitString ":" self.meta.position);
in writeScript "update-python" ''
#!${python.stdenv.shell}
${update-python-libraries} ${filename}
'';
in [ update-python-libraries filename ];
};
in lib.extendDerivation true passthru self