@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, makeWrapper, gcc, ocaml, ncurses}:
1+{ stdenv, fetchurl, makeWrapper, ocaml, ncurses }:
22
33let
44 pname = "camlidl";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 mv config/Makefile.unix config/Makefile
2020 substituteInPlace config/Makefile --replace BINDIR=/usr/local/bin BINDIR=$out
2121 substituteInPlace config/Makefile --replace OCAMLLIB=/usr/local/lib/ocaml OCAMLLIB=$out/lib/ocaml/${ocaml.version}/site-lib/camlidl
22− substituteInPlace config/Makefile --replace CPP=/lib/cpp CPP=${gcc}/bin/cpp
22+ substituteInPlace config/Makefile --replace CPP=/lib/cpp CPP=${stdenv.cc}/bin/cpp
2323 mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/camlidl/caml
2424 '';
2525