1 { lib, stdenv, fetchurl, ocaml, gd, freetype, findlib, zlib, libpng, libjpeg }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-gd4o";
8 url = "mirror://sourceforge/gd4o/gd4o/1.0%20Alpha%205/gd4o-1.0a5.tar.gz";
9 sha256 = "1vbyakz7byvxmqf3hj68rw15b4kb94ppcnhvmjv38rsyg05bc47s";
12 buildInputs = [ ocaml findlib libjpeg libpng ];
13 propagatedBuildInputs = [ gd zlib freetype ];
17 mkdir -p $OCAMLFIND_DESTDIR/stublibs
20 buildFlags = [ "all" "opt" ];
31 homepage = "https://sourceforge.net/projects/gd4o/";
32 description = "OCaml wrapper for the GD graphics library";
33 license = licenses.lgpl21Only;
34 maintainers = with maintainers; [ dandellion ];