ocamlPackages.gd4o: fix build on darwin and probably on linux

This commit is contained in:
Et7f3 2023-01-24 23:41:28 +01:00
parent 5a99c240a9
commit a5ffa79932

View file

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib libjpeg libpng ];
propagatedBuildInputs = [ gd zlib freetype ];
prePatch = ''
substituteInPlace Makefile --replace gcc cc
'';
preInstall = ''
mkdir -p $OCAMLFIND_DESTDIR/stublibs