summary refs log tree commit diff
path: root/pkgs/tools/networking/cdpr
diff options
context:
space:
mode:
authorflurie <flurie@gmail.com>2021-11-20 18:24:38 -0500
committerflurie <flurie@gmail.com>2021-11-20 18:24:38 -0500
commit31b38fd938038c63e0623dba0d6a7eccc7bd39ed (patch)
tree7b9e2544aa3a579852a6ebcceb324a1038374817 /pkgs/tools/networking/cdpr
parent5e59d5714a57f253ada26c4ba49f8ecb74a90e21 (diff)
downloadnixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar.gz
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar.bz2
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar.lz
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar.xz
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.tar.zst
nixpkgs-31b38fd938038c63e0623dba0d6a7eccc7bd39ed.zip
cdpr: fix build on darwin
Diffstat (limited to 'pkgs/tools/networking/cdpr')
-rw-r--r--pkgs/tools/networking/cdpr/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/networking/cdpr/default.nix b/pkgs/tools/networking/cdpr/default.nix
index 6ac69b95dba..0b92fd7aa45 100644
--- a/pkgs/tools/networking/cdpr/default.nix
+++ b/pkgs/tools/networking/cdpr/default.nix
@@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
     sha256 = "1idyvyafkk0ifcbi7mc65b60qia6hpsdb6s66j4ggqp7if6vblrj";
   };
 
+  postPatch = ''
+    substituteInPlace Makefile --replace 'gcc' '"$$CC"'
+  '';
+
   buildInputs = [ libpcap ];
 
   installPhase = ''