From e69ee9b53e7a840afd2deabbdf3f8e0758aa6da4 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 18 Dec 2018 16:02:08 +0100 Subject: [PATCH] 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. --- .../development/interpreters/python/mk-python-derivation.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index eb913e1a3752..72a2805a3000 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -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