diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-19 19:20:32 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-19 19:20:32 +0200 |
commit | 92ef4067a61291c3a1de02162d6506c5af9c43a2 (patch) | |
tree | 37464a5a0a99d02b7924fed3854d80e7dea71fa4 /pkgs/development/ocaml-modules/uchar | |
parent | db6897220684fbabc66ea3ba62497a3333ed4a53 (diff) | |
download | nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar.gz nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar.bz2 nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar.lz nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar.xz nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.tar.zst nixlib-92ef4067a61291c3a1de02162d6506c5af9c43a2.zip |
ocamlPackages.uchar: init at 0.0.1
The uchar package provides a compatibility library for the `Uchar` module introduced in OCaml 4.03.
Diffstat (limited to 'pkgs/development/ocaml-modules/uchar')
-rw-r--r-- | pkgs/development/ocaml-modules/uchar/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/uchar/default.nix b/pkgs/development/ocaml-modules/uchar/default.nix new file mode 100644 index 000000000000..c2e5a1fc9298 --- /dev/null +++ b/pkgs/development/ocaml-modules/uchar/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, ocaml, ocamlbuild, opam }: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-uchar-0.0.1"; + + src = fetchurl { + url = https://github.com/ocaml/uchar/releases/download/v0.0.1/uchar-0.0.1.tbz; + sha256 = "0ficw1x7ymbd6m8hqw3w1aycwm1hbwd6bad3c5pspwnzh3qlikhi"; + }; + + unpackCmd = "tar xjf $src"; + buildInputs = [ ocaml ocamlbuild opam ]; + buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true"; + installPhase = '' + opam-installer --script --prefix=$out uchar.install > install.sh + sh install.sh + mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/ + ln -s $out/lib/uchar $out/lib/ocaml/${ocaml.version}/site-lib/ + ''; + + + meta = { + description = "Compatibility library for OCaml’s Uchar module"; + inherit (ocaml.meta) platforms license; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + }; +} |