about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/camlpdf/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-11-16 08:42:55 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-11-16 08:42:55 +0000
commit099d1455909f3e24e4327e435d14976b74a9df55 (patch)
tree5bd7018bf51e6dd6a978b234e05c2ac4335f4dc0 /pkgs/development/ocaml-modules/camlpdf/default.nix
parentfb76f0fe7d8187bb3437f92715c2645da71d4c62 (diff)
Adds ocaml-camlpdf-1.7.2
OCaml library for reading, writing and modifying PDF files

Homepage: https://github.com/johnwhitington/camlpdf
Diffstat (limited to 'pkgs/development/ocaml-modules/camlpdf/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/camlpdf/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/camlpdf/default.nix b/pkgs/development/ocaml-modules/camlpdf/default.nix
new file mode 100644
index 0000000000000..9c6bae89f689d
--- /dev/null
+++ b/pkgs/development/ocaml-modules/camlpdf/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchgit, ocaml, findlib, ncurses}:
+
+stdenv.mkDerivation {
+  name = "ocaml-camlpdf-1.7.2";
+  src = fetchgit {
+    url = https://github.com/johnwhitington/camlpdf.git;
+    rev = "73ee0c4cc71e4d5f2f046d0b41d301e0df1d78d9";
+    sha256 = "0n3jpkwbh0qi282hvsvgz0hv9lwwd8rqy3pwgmpqr0rmbim8wss5";
+  };
+
+  buildInputs = [ ocaml findlib ncurses ];
+
+  # Version number in META file is wrong
+  patchPhase = ''
+    patch -p 0 META <<EOF
+    3c3
+    < version="1.7.1"
+    ---
+    > version="1.7.2"
+    EOF
+  '';
+
+  createFindlibDestdir = true;
+
+  meta = with stdenv.lib; {
+    description = "An OCaml library for reading, writing and modifying PDF files";
+    homepage = https://github.com/johnwhitington/camlpdf;
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [vbgl];
+  };
+}