mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Update ocaml-react to 1.1.0
This commit is contained in:
parent
59b1bd0607
commit
337a3b8212
@ -1,11 +1,11 @@
|
|||||||
{stdenv, fetchurl, ocaml, findlib, opam}:
|
{stdenv, fetchurl, ocaml, findlib, opam}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml-react-1.0.1";
|
name = "ocaml-react-1.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://erratique.ch/software/react/releases/react-1.0.1.tbz";
|
url = http://erratique.ch/software/react/releases/react-1.1.0.tbz;
|
||||||
sha256 = "007c9kzl0i6xvxnqj9jny4hgm28v9a1i079q53vl5hfb5f7h1mda";
|
sha256 = "1gymn8hy7ga0l9qymmb1jcnnkqvy7l2zr87xavzqz0dfi9ci8dm7";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
@ -15,8 +15,13 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
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 =
|
||||||
|
let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
|
||||||
|
in
|
||||||
|
''
|
||||||
opam-installer --script --prefix=$out react.install > install.sh
|
opam-installer --script --prefix=$out react.install > install.sh
|
||||||
|
sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
|
||||||
sh install.sh
|
sh install.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -25,6 +30,6 @@ stdenv.mkDerivation {
|
|||||||
description = "Applicative events and signals for OCaml";
|
description = "Applicative events and signals for OCaml";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = ocaml.meta.platforms;
|
platforms = ocaml.meta.platforms;
|
||||||
maintainers = with maintainers; [ z77z vbmithr ];
|
maintainers = with maintainers; [ z77z vbmithr gal_bolle];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user