aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/uucp
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-11-27 06:53:43 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-11-27 06:53:43 +0000
commit0f4e9835d7fceba4f192e549ecd24ca7add7e6e3 (patch)
tree4623e2bf427b97ea19c3949154b21db4c5353559 /pkgs/development/ocaml-modules/uucp
parent021efdf0211d8d8763be417c69abd250bf7c8efa (diff)
Adds ocaml-uucp
Uucp is an OCaml library providing efficient access to a selection of character properties of the Unicode character database. Homepage: http://erratique.ch/software/uucp
Diffstat (limited to 'pkgs/development/ocaml-modules/uucp')
-rw-r--r--pkgs/development/ocaml-modules/uucp/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/uucp/default.nix b/pkgs/development/ocaml-modules/uucp/default.nix
new file mode 100644
index 00000000000..2ee39cab9f4
--- /dev/null
+++ b/pkgs/development/ocaml-modules/uucp/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl, ocaml, findlib, opam }:
+
+let
+ inherit (stdenv.lib) getVersion versionAtLeast;
+
+ pname = "uucp";
+ version = "0.9.0";
+ webpage = "http://erratique.ch/software/${pname}";
+in
+
+assert versionAtLeast (getVersion ocaml) "4.00";
+
+stdenv.mkDerivation {
+
+ name = "ocaml-${pname}-${version}";
+
+ src = fetchurl {
+ url = "${webpage}/releases/${pname}-${version}.tbz";
+ sha256 = "1cwjr16cg03h30r97lnb32g725qi7ma76kr2aly5smc3m413dhqy";
+ };
+
+ buildInputs = [ ocaml findlib opam ];
+
+ createFindlibDestdir = true;
+
+ unpackCmd = "tar xjf $src";
+
+ buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
+
+ installPhase = ''
+ opam-installer --script --prefix=$out ${pname}.install | sh
+ ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
+ '';
+
+ meta = with stdenv.lib; {
+ description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
+ homepage = "${webpage}";
+ platforms = ocaml.meta.platforms;
+ license = licenses.bsd3;
+ maintainers = [ maintainers.vbgl ];
+ };
+}