ocamlPackages.uchar: use opaline
This commit is contained in:
parent
9114b47314
commit
853fb4598f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, ocaml, ocamlbuild, opam }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml${ocaml.version}-uchar-0.0.2";
|
name = "ocaml${ocaml.version}-uchar-0.0.2";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
buildInputs = [ ocaml ocamlbuild opam ];
|
buildInputs = [ ocaml ocamlbuild findlib opaline ];
|
||||||
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
||||||
installPhase = ''
|
installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
|
||||||
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 = {
|
meta = {
|
||||||
description = "Compatibility library for OCaml’s Uchar module";
|
description = "Compatibility library for OCaml’s Uchar module";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user