Skip to content

Commit

Permalink
Merge pull request NixOS#261118 from trofi/cowpatty-parallel-fix
Browse files Browse the repository at this point in the history
cowpatty: backport parallel build fix
  • Loading branch information
marsam authored Oct 26, 2023
2 parents 8055e67 + 80da54a commit 77ed358
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/tools/security/cowpatty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, stdenv
, clang
, fetchFromGitHub
, fetchpatch
, installShellFiles
, openssl
, libpcap
Expand All @@ -18,6 +19,16 @@ stdenv.mkDerivation rec {
sha256 = "0fvwwghhd7wsx0lw2dj9rdsjnirawnq3c6silzvhi0yfnzn5fs0s";
};

patches = [
# Pull upstream fix for parallel builds:
# https://github.com/joswr1ght/cowpatty/pull/5
(fetchpatch {
name = "fix-parallel.patch";
url = "https://github.com/joswr1ght/cowpatty/commit/9c8cc09c4fa90aebee44afcd0ad6a35539178478.patch";
hash = "sha256-k0Qht80HcjvPoxVPF6wAXwxN3d2mxBrEyeFGuU7w9eA=";
})
];

nativeBuildInputs = [
clang
installShellFiles
Expand All @@ -28,6 +39,8 @@ stdenv.mkDerivation rec {
libpcap
];

enableParallelBuilding = true;

makeFlags = [
"DESTDIR=$(out)"
"BINDIR=/bin"
Expand Down

0 comments on commit 77ed358

Please sign in to comment.