Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 30 lines 785 B view raw
1{ stdenv, lib, fetchFromGitHub, pkg-config, fontconfig, ocaml }: 2 3stdenv.mkDerivation { 4 pname = "ocaml-fontconfig"; 5 version = "unstable-2013-11-03"; 6 7 src = fetchFromGitHub { 8 owner = "flh"; 9 repo = "ocaml-fontconfig"; 10 rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5"; 11 sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ocaml ]; 15 buildInputs = [ fontconfig ]; 16 17 strictDeps = true; 18 19 makeFlags = [ 20 "OCAML_STDLIB_DIR=$(out)/lib/ocaml/${lib.getVersion ocaml}/site-lib/" 21 "OCAML_HAVE_OCAMLOPT=yes" 22 ]; 23 24 meta = { 25 description = "Fontconfig bindings for OCaml"; 26 license = lib.licenses.gpl2Plus; 27 platforms = ocaml.meta.platforms or [ ]; 28 maintainers = with lib.maintainers; [ vbgl ]; 29 }; 30}