ocamlPackages.uutf: 0.9.4 -> 1.0.0
This commit is contained in:
parent
c4a2bd4668
commit
7ebe29a56c
1 changed files with 8 additions and 19 deletions
|
@ -1,37 +1,26 @@
|
||||||
{ stdenv, buildOcaml, fetchurl, ocaml, findlib, ocamlbuild, opam, cmdliner}:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, cmdliner , topkg, uchar }:
|
||||||
let
|
let
|
||||||
pname = "uutf";
|
pname = "uutf";
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
buildOcaml rec {
|
stdenv.mkDerivation rec {
|
||||||
name = pname;
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
version = "0.9.4";
|
version = "1.0.0";
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "4.00.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "1f71fyawxal42x6g82539bv0ava2smlar6rmxxz1cyq3l0i6fw0k";
|
sha256 = "08i0cw02cxw4mi2rs01v9xi307qshs6fnd1dlqyb52kcxzblpp37";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild opam cmdliner ];
|
buildInputs = [ ocaml findlib ocamlbuild topkg opam cmdliner ];
|
||||||
|
propagatedBuildInputs = [ uchar ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
buildPhase = ''
|
inherit (topkg) buildPhase installPhase;
|
||||||
ocaml pkg/build.ml \
|
|
||||||
native=true \
|
|
||||||
native-dynlink=true \
|
|
||||||
cmdliner=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
opam-installer --prefix=$out --script ${pname}.install | sh
|
|
||||||
ln -s $out/lib/uutf $out/lib/ocaml/${ocaml.version}/site-lib/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Non-blocking streaming Unicode codec for OCaml";
|
description = "Non-blocking streaming Unicode codec for OCaml";
|
||||||
|
|
Loading…
Reference in a new issue