2015-09-19 17:27:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, fontconfig, ocaml }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-fontconfig-20131103";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flh";
|
|
|
|
repo = "ocaml-fontconfig";
|
|
|
|
rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5";
|
|
|
|
sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ocaml fontconfig ];
|
2019-10-29 22:21:22 +00:00
|
|
|
makeFlags = [
|
|
|
|
"OCAML_STDLIB_DIR=$(out)/lib/ocaml/${stdenv.lib.getVersion ocaml}/site-lib/"
|
|
|
|
"OCAML_HAVE_OCAMLOPT=yes"
|
|
|
|
];
|
2015-09-19 17:27:14 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fontconfig bindings for OCaml";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-09-19 17:27:14 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|