summary refs log tree commit diff
path: root/pkgs/tools/networking/dhcp
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-10-27 21:57:21 +0100
committerSergei Trofimovich <slyich@gmail.com>2021-10-27 22:01:57 +0100
commit508e9a0837ed8e839476afa2831358fc03d46eb4 (patch)
tree69ee8e42623be1e0dbdf18d077a7eb7528a2eba6 /pkgs/tools/networking/dhcp
parentc505be69092838513d98b1bab056ac36d102bd2c (diff)
downloadnixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar.gz
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar.bz2
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar.lz
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar.xz
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.tar.zst
nixpkgs-508e9a0837ed8e839476afa2831358fc03d46eb4.zip
dhcp: enable parallel building
The spedup on my machine is from 62 seconds down to 48 seconds.
Diffstat (limited to 'pkgs/tools/networking/dhcp')
-rw-r--r--pkgs/tools/networking/dhcp/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/networking/dhcp/default.nix b/pkgs/tools/networking/dhcp/default.nix
index 7df04ac0c89..5a531bddcaf 100644
--- a/pkgs/tools/networking/dhcp/default.nix
+++ b/pkgs/tools/networking/dhcp/default.nix
@@ -24,6 +24,14 @@ stdenv.mkDerivation rec {
         url = "https://gitlab.isc.org/isc-projects/dhcp/-/commit/6c7e61578b1b449272dbb40dd8b98d03dad8a57a.patch";
         sha256 = "1g37ix0yf9zza8ri8bg438ygcjviniblfyb20y4gzc8lysy28m8b";
       })
+
+      # Fix parallel build failure, the patch is pending upstream inclusion:
+      #  https://gitlab.isc.org/isc-projects/dhcp/-/merge_requests/76
+      (fetchpatch {
+        name = "parallel-make.patch";
+        url = "https://gitlab.isc.org/isc-projects/dhcp/-/commit/46d101b97c5a3b19a3f63f7b60e5f88994a64e22.patch";
+        sha256 = "1y3nsmqjzcg4bhp1xmqp47v7rkl3bpcildkx6mlrg255yvxapmdp";
+      })
     ];
 
   nativeBuildInputs = [ perl makeWrapper ];
@@ -79,6 +87,8 @@ stdenv.mkDerivation rec {
       export AR='${stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar'
     '';
 
+  enableParallelBuilding = true;
+
   meta = with lib; {
     description = "Dynamic Host Configuration Protocol (DHCP) tools";