about summary refs log tree commit diff
path: root/pkgs/development/web/nodejs
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-11-23 18:03:19 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-12-01 19:17:13 +0100
commit59a94b57f07594f4544896dd90c71a948d1ea089 (patch)
treeec17df5cba0961e72295e3c38c1a75a95f6f838f /pkgs/development/web/nodejs
parent7a9acea944d96de52f8c08faab75582af9f27a61 (diff)
downloadnixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar.gz
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar.bz2
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar.lz
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar.xz
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.tar.zst
nixlib-59a94b57f07594f4544896dd90c71a948d1ea089.zip
update.nix: Run update scripts in parallel
To make updating large attribute sets faster, the update scripts
are now run in parallel.

Please note the following changes in semantics:

- The string passed to updateScript needs to be a path to an executable file.
- The updateScript can also be a list: the tail elements will then be passed
  to the head as command line arguments.
Diffstat (limited to 'pkgs/development/web/nodejs')
-rw-r--r--pkgs/development/web/nodejs/update.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/web/nodejs/update.nix b/pkgs/development/web/nodejs/update.nix
index 9ff11982b656..bf6951dc6882 100644
--- a/pkgs/development/web/nodejs/update.nix
+++ b/pkgs/development/web/nodejs/update.nix
@@ -1,4 +1,5 @@
-{ lib
+{ stdenv
+, lib
 , writeScript
 , coreutils
 , curl
@@ -11,6 +12,7 @@
 }:
 
 writeScript "update-nodejs" ''
+  #!${stdenv.shell}
   PATH=${lib.makeBinPath [ common-updater-scripts coreutils curl gnugrep jq gnupg nix ]}
 
   HOME=`mktemp -d`