about summary refs log tree commit diff
path: root/pkgs/desktops/deepin
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/desktops/deepin
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/desktops/deepin')
-rw-r--r--pkgs/desktops/deepin/update.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/desktops/deepin/update.nix b/pkgs/desktops/deepin/update.nix
index 761ead015c6b..22a6acb8ce31 100644
--- a/pkgs/desktops/deepin/update.nix
+++ b/pkgs/desktops/deepin/update.nix
@@ -1,4 +1,4 @@
-{ lib, writeScript, coreutils, curl, gnugrep, gnused, jq, common-updater-scripts, nix }:
+{ stdenv, lib, writeScript, coreutils, curl, gnugrep, gnused, jq, common-updater-scripts, nix }:
 { name, ignored-versions ? "^2014\\.|^v[0-9]+" }:
 
 let
@@ -9,6 +9,7 @@ let
 in
 
 writeScript "update-${packageName}" ''
+  #!${stdenv.shell}
   set -o errexit
   set -x