about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/mk-python-derivation.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-12-18 16:02:08 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-12-20 00:28:49 +0100
commite69ee9b53e7a840afd2deabbdf3f8e0758aa6da4 (patch)
treec155733e02dc5f402fa98d99f624c32b40314762 /pkgs/development/interpreters/python/mk-python-derivation.nix
parentca5ee6dfb74656a50646990225a54fdfa6aa9a56 (diff)
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.
Diffstat (limited to 'pkgs/development/interpreters/python/mk-python-derivation.nix')
-rw-r--r--pkgs/development/interpreters/python/mk-python-derivation.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix
index eb913e1a37527..72a2805a30004 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