summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/ocaml-modules/gd4o/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/gd4o/default.nix b/pkgs/development/ocaml-modules/gd4o/default.nix
index 19a1b42f06b..9923edc2e8d 100644
--- a/pkgs/development/ocaml-modules/gd4o/default.nix
+++ b/pkgs/development/ocaml-modules/gd4o/default.nix
@@ -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