diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index fd1e492b627b..2e369960993c 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, gitUpdater, @@ -25,6 +26,10 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; + preCheck = '' + substituteInPlace examples/using_gcc_E_libc.py \ + --replace-fail "'gcc'" "'${stdenv.cc.targetPrefix}cc'" + ''; unittestFlagsArray = [ "-s" "tests"