nixpkgs-suyu/pkgs/development/ocaml-modules/uchar/default.nix

21 lines
668 B
Nix
Raw Normal View History

2018-05-28 08:08:03 +02:00
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-uchar-0.0.2";
src = fetchurl {
url = https://github.com/ocaml/uchar/releases/download/v0.0.2/uchar-0.0.2.tbz;
sha256 = "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7";
};
2018-05-28 08:08:03 +02:00
buildInputs = [ ocaml ocamlbuild findlib opaline ];
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
2018-05-28 08:08:03 +02:00
installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
meta = {
description = "Compatibility library for OCamls Uchar module";
inherit (ocaml.meta) platforms license;
maintainers = [ stdenv.lib.maintainers.vbgl ];
};
}