diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-11-16 08:42:55 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-11-16 08:42:55 +0000 |
commit | 099d1455909f3e24e4327e435d14976b74a9df55 (patch) | |
tree | 5bd7018bf51e6dd6a978b234e05c2ac4335f4dc0 /pkgs | |
parent | fb76f0fe7d8187bb3437f92715c2645da71d4c62 (diff) | |
download | nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar.gz nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar.bz2 nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar.lz nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar.xz nixlib-099d1455909f3e24e4327e435d14976b74a9df55.tar.zst nixlib-099d1455909f3e24e4327e435d14976b74a9df55.zip |
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')
-rw-r--r-- | pkgs/development/ocaml-modules/camlpdf/default.nix | 31 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 33 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 000000000000..9c6bae89f689 --- /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]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6ba6539655e1..79b6c69ca276 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3551,6 +3551,8 @@ let camlp5_transitional = camlp5_6_transitional; + camlpdf = callPackage ../development/ocaml-modules/camlpdf { }; + calendar = callPackage ../development/ocaml-modules/calendar { }; camlzip = callPackage ../development/ocaml-modules/camlzip { }; |