ocamlPackages.cmdliner_0_9: use opaline
This commit is contained in:
parent
10d70a2ae3
commit
a4fa4c45cc
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "cmdliner";
|
pname = "cmdliner";
|
||||||
@ -17,17 +17,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
nativeBuildInputs = [ ocamlbuild opam ];
|
nativeBuildInputs = [ ocamlbuild opaline ];
|
||||||
buildInputs = [ ocaml findlib ];
|
buildInputs = [ ocaml findlib ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
configurePhase = "ocaml pkg/git.ml";
|
configurePhase = "ocaml pkg/git.ml";
|
||||||
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 | sh
|
|
||||||
ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://erratique.ch/software/cmdliner;
|
homepage = http://erratique.ch/software/cmdliner;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user