2021-01-19 07:50:56 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, fontconfig, ocaml }:
|
2015-09-19 18:27:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-11-09 20:42:54 +01:00
|
|
|
pname = "ocaml-fontconfig";
|
|
|
|
version = "unstable-2013-11-03";
|
|
|
|
|
2015-09-19 18:27:14 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flh";
|
|
|
|
repo = "ocaml-fontconfig";
|
|
|
|
rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5";
|
|
|
|
sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh";
|
|
|
|
};
|
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ocaml ];
|
|
|
|
buildInputs = [ fontconfig ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2019-10-29 23:21:22 +01:00
|
|
|
makeFlags = [
|
2021-01-11 13:49:15 +01:00
|
|
|
"OCAML_STDLIB_DIR=$(out)/lib/ocaml/${lib.getVersion ocaml}/site-lib/"
|
2019-10-29 23:21:22 +01:00
|
|
|
"OCAML_HAVE_OCAMLOPT=yes"
|
|
|
|
];
|
2015-09-19 18:27:14 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fontconfig bindings for OCaml";
|
2021-01-11 13:49:15 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2021-11-09 20:53:19 +01:00
|
|
|
platforms = ocaml.meta.platforms or [ ];
|
2021-01-11 13:49:15 +01:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-09-19 18:27:14 +02:00
|
|
|
};
|
|
|
|
}
|