From 2924904d95e9fa845ee271a51a06d7a8650267be Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 25 Oct 2019 04:20:00 -0500 Subject: [PATCH] pythonPackages.cocotb: fix build on darwin --- pkgs/development/python-modules/cocotb/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/cocotb/default.nix b/pkgs/development/python-modules/cocotb/default.nix index 228ac7904ec4..e10ecd8e840a 100644 --- a/pkgs/development/python-modules/cocotb/default.nix +++ b/pkgs/development/python-modules/cocotb/default.nix @@ -24,6 +24,9 @@ buildPythonPackage rec { cocotb/share/makefiles/simulators/Makefile.* do substituteInPlace $f --replace 'shell which' 'shell command -v' + # replace hardcoded gcc. Remove once https://github.com/cocotb/cocotb/pull/1137 gets merged + substituteInPlace $f --replace 'gcc' '$(CC)' + substituteInPlace $f --replace 'g++' '$(CXX)' done '';