1{ stdenv, fetchFromGitHub, pkgconfig, fontconfig, ocaml }:
2
3stdenv.mkDerivation {
4 name = "ocaml-fontconfig-20131103";
5 src = fetchFromGitHub {
6 owner = "flh";
7 repo = "ocaml-fontconfig";
8 rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5";
9 sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ ocaml fontconfig ];
14 makeFlags = "OCAML_STDLIB_DIR=$(out)/lib/ocaml/${stdenv.lib.getVersion ocaml}/site-lib/ OCAML_HAVE_OCAMLOPT=yes";
15
16 meta = {
17 description = "Fontconfig bindings for OCaml";
18 license = stdenv.lib.licenses.gpl2Plus;
19 platforms = ocaml.meta.platforms or [];
20 maintainers = with stdenv.lib.maintainers; [ vbgl ];
21 };
22}