diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-11-23 18:03:19 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-12-01 19:17:13 +0100 |
commit | 59a94b57f07594f4544896dd90c71a948d1ea089 (patch) | |
tree | ec17df5cba0961e72295e3c38c1a75a95f6f838f /pkgs/tools/package-management/nix-update-source/default.nix | |
parent | 7a9acea944d96de52f8c08faab75582af9f27a61 (diff) |
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/tools/package-management/nix-update-source/default.nix')
-rw-r--r-- | pkgs/tools/package-management/nix-update-source/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/nix-update-source/default.nix b/pkgs/tools/package-management/nix-update-source/default.nix index e7eb497b4b9fb..7584496f25857 100644 --- a/pkgs/tools/package-management/nix-update-source/default.nix +++ b/pkgs/tools/package-management/nix-update-source/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts }: +{ stdenv, lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts }: python3Packages.buildPythonApplication rec { version = "0.6.3"; name = "nix-update-source-${version}"; @@ -28,6 +28,7 @@ python3Packages.buildPythonApplication rec { overrideSrc = drv: lib.overrideDerivation drv (orig: { inherit src; }); }; updateScript = '' + #!${stdenv.shell} set -e echo cd ${toString ./.} |