git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.uchar: init at 0.0.1

The uchar package provides a compatibility library for the `Uchar` module introduced in OCaml 4.03.

commit92ef4067a61291c3a1de02162d6506c5af9c43a2 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 19 Oct 2016, 19:20 (10 years ago) parentdb68972
2 files changed+29
pkgs/development/ocaml-modules/uchar/default.nix+27 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/uchar/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchurl, ocaml, ocamlbuild, opam }:
2+
3+stdenv.mkDerivation {
4+ name = "ocaml${ocaml.version}-uchar-0.0.1";
5+
6+ src = fetchurl {
7+ url = https://github.com/ocaml/uchar/releases/download/v0.0.1/uchar-0.0.1.tbz;
8+ sha256 = "0ficw1x7ymbd6m8hqw3w1aycwm1hbwd6bad3c5pspwnzh3qlikhi";
9+ };
10+
11+ unpackCmd = "tar xjf $src";
12+ buildInputs = [ ocaml ocamlbuild opam ];
13+ buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
14+ installPhase = ''
15+ opam-installer --script --prefix=$out uchar.install > install.sh
16+ sh install.sh
17+ mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/
18+ ln -s $out/lib/uchar $out/lib/ocaml/${ocaml.version}/site-lib/
19+ '';
20+
21+
22+ meta = {
23+ description = "Compatibility library for OCaml’s Uchar module";
24+ inherit (ocaml.meta) platforms license;
25+ maintainers = [ stdenv.lib.maintainers.vbgl ];
26+ };
27+}
pkgs/top-level/ocaml-packages.nix+2
@@ -441,6 +441,8 @@ let
441441
442442 typerep_p4 = callPackage ../development/ocaml-modules/typerep { };
443443
444+ uchar = callPackage ../development/ocaml-modules/uchar { };
445+
444446 utop = callPackage ../development/tools/ocaml/utop { };
445447
446448 uuidm = callPackage ../development/ocaml-modules/uuidm { };