From e27de0051702e7c134b2e5746e116b44302dc15e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 6 Jun 2023 09:02:50 +0100 Subject: [PATCH] gnugrep: enable parallel build and tests On a 16-core system number changes are: - before: 1m34s - after: 39s 2.5x speedup. If ./configure phase was faster the change would be even more substantial. --- pkgs/tools/text/gnugrep/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index 75c6f6950737..e0f4e5f8d4aa 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -36,6 +36,8 @@ stdenv.mkDerivation { export MKDIR_P="mkdir -p" ''; + enableParallelBuilding = true; + # Fix reference to sh in bootstrap-tools, and invoke grep via # absolute path rather than looking at argv[0]. postInstall =