summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-02-02 08:07:19 +0000
committerSergei Trofimovich <slyich@gmail.com>2022-02-03 20:56:05 +0000
commitf2428dfba320e13cb1ff5ee64743d9edd1a5fa14 (patch)
tree1d7f7076f2899d5a6fd56cde41de9f27037e8be2
parent1c934c6d0b022c4c0f5718ea025b6c4efa91258a (diff)
downloadnixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar.gz
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar.bz2
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar.lz
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar.xz
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.tar.zst
nixpkgs-f2428dfba320e13cb1ff5ee64743d9edd1a5fa14.zip
procdump: enable parallel building
-rw-r--r--pkgs/os-specific/linux/procdump/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/procdump/default.nix b/pkgs/os-specific/linux/procdump/default.nix
index 0b40a4dd036..05ec4b90ed7 100644
--- a/pkgs/os-specific/linux/procdump/default.nix
+++ b/pkgs/os-specific/linux/procdump/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, bash, coreutils, gdb, zlib }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, bash, coreutils, gdb, zlib }:
 
 stdenv.mkDerivation rec {
   pname = "procdump";
@@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-gVswAezHl7E2cBTJEQhPFXhHkzhWVHSpPF8m0s8+ekc=";
   };
 
+  patches = [
+    # Pull upstream patch to fix parallel builds:
+    #  https://github.com/Sysinternals/ProcDump-for-Linux/pull/133
+    (fetchpatch {
+      name = "parallel.patch";
+      url = "https://github.com/Sysinternals/ProcDump-for-Linux/commit/0d735836f11281cc6134be93eac8acb302f2055e.patch";
+      sha256 = "sha256-zsqllPHF8ZuXAIDSAPvbzdKa43uSSx9ilUKM1vFVW90=";
+    })
+  ];
+
   nativeBuildInputs = [ zlib ];
   buildInputs = [ bash coreutils gdb ];
 
@@ -27,6 +37,8 @@ stdenv.mkDerivation rec {
     "MANDIR=/share/man/man1"
   ];
 
+  enableParallelBuilding = true;
+
   doCheck = false; # needs sudo root
 
   doInstallCheck = true;