summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/fontconfig/default.nix
blob: 8f804988129bb53cbf4b5d05f89842a774ddc26d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, lib, fetchFromGitHub, pkgconfig, fontconfig, ocaml }:

stdenv.mkDerivation {
  name = "ocaml-fontconfig-20131103";
  src = fetchFromGitHub {
    owner = "flh";
    repo = "ocaml-fontconfig";
    rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5";
    sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ ocaml fontconfig ];
  makeFlags = [
    "OCAML_STDLIB_DIR=$(out)/lib/ocaml/${lib.getVersion ocaml}/site-lib/"
    "OCAML_HAVE_OCAMLOPT=yes"
  ];

  meta = {
    description = "Fontconfig bindings for OCaml";
    license = lib.licenses.gpl2Plus;
    platforms = ocaml.meta.platforms or [];
    maintainers = with lib.maintainers; [ vbgl ];
  };
}