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.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ name
|
||||
{ stdenv
|
||||
, name
|
||||
, channel
|
||||
, writeScript
|
||||
, xidel
|
||||
@@ -17,6 +18,7 @@ let
|
||||
channel != "release";
|
||||
|
||||
in writeScript "update-${name}" ''
|
||||
#!${stdenv.shell}
|
||||
PATH=${coreutils}/bin:${gnused}/bin:${gnugrep}/bin:${xidel}/bin:${curl}/bin:${gnupg}/bin
|
||||
set -eux
|
||||
pushd ${basePath}
|
||||
|
||||
Reference in New Issue
Block a user