Merge pull request #157816 from trofi/fix-parallel-procdump

procdump: enable parallel building
This commit is contained in:
Renaud 2022-02-04 11:46:01 +01:00 committed by GitHub
commit b16f837b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, bash, coreutils, gdb, zlib }: { lib, stdenv, fetchFromGitHub, fetchpatch, bash, coreutils, gdb, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "procdump"; pname = "procdump";
@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-gVswAezHl7E2cBTJEQhPFXhHkzhWVHSpPF8m0s8+ekc="; 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 ]; nativeBuildInputs = [ zlib ];
buildInputs = [ bash coreutils gdb ]; buildInputs = [ bash coreutils gdb ];
@ -27,6 +37,8 @@ stdenv.mkDerivation rec {
"MANDIR=/share/man/man1" "MANDIR=/share/man/man1"
]; ];
enableParallelBuilding = true;
doCheck = false; # needs sudo root doCheck = false; # needs sudo root
doInstallCheck = true; doInstallCheck = true;