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

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