about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-09-19 18:27:14 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-09-19 18:27:14 +0200
commit2fe151a8d86c5d736fe769a60c374b4aaee730dd (patch)
tree4e0bb54354dfc53c38c942b0be0f057ab15ae886
parent80b26e4079ce1eb3c08683ea4e4835b965d5c974 (diff)
downloadnixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar.gz
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar.bz2
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar.lz
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar.xz
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.tar.zst
nixlib-2fe151a8d86c5d736fe769a60c374b4aaee730dd.zip
ocaml-fontconfig: init at 20131103
-rw-r--r--pkgs/development/ocaml-modules/fontconfig/default.nix21
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/fontconfig/default.nix b/pkgs/development/ocaml-modules/fontconfig/default.nix
new file mode 100644
index 000000000000..65311683d0c0
--- /dev/null
+++ b/pkgs/development/ocaml-modules/fontconfig/default.nix
@@ -0,0 +1,21 @@
+{ stdenv, fetchFromGitHub, pkgconfig, fontconfig, ocaml }:
+
+stdenv.mkDerivation {
+  name = "ocaml-fontconfig-20131103";
+  src = fetchFromGitHub {
+    owner = "flh";
+    repo = "ocaml-fontconfig";
+    rev = "42daf1697ffcee9c89ee4be3103b6427f7a7b7e5";
+    sha256 = "1fw6bzydmnyh2g4x35mcbg0hypnxqhynivk4nakcsx7prr8zr3yh";
+  };
+
+  buildInputs = [ ocaml pkgconfig fontconfig ];
+  makeFlags = "OCAML_STDLIB_DIR=$(out)/lib/ocaml/${stdenv.lib.getVersion ocaml}/site-lib/ OCAML_HAVE_OCAMLOPT=yes";
+
+  meta = {
+    description = "Fontconfig bindings for OCaml";
+    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = ocaml.meta.platforms;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d35555e19953..e81e28478b1f 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4369,6 +4369,10 @@ let
 
     fix = callPackage ../development/ocaml-modules/fix { };
 
+    fontconfig = callPackage ../development/ocaml-modules/fontconfig {
+      inherit (pkgs) fontconfig;
+    };
+
     functory = callPackage ../development/ocaml-modules/functory { };
 
     herelib = callPackage ../development/ocaml-modules/herelib { };