diff options
author | Marco Maggesi <maggesi@math.unifi.it> | 2014-01-31 00:10:20 +0100 |
---|---|---|
committer | Marco Maggesi <maggesi@math.unifi.it> | 2014-01-31 12:01:32 +0100 |
commit | e1df6c21620a78107ecbab33fb53eba921189d45 (patch) | |
tree | 17373217ec20cb3e7ddeeb2ae29048ea78c9737f /pkgs/development/ocaml-modules/react | |
parent | f3a49abf089de509bbfc5f535d01d0053bc54046 (diff) | |
download | nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar.gz nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar.bz2 nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar.lz nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar.xz nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.tar.zst nixpkgs-e1df6c21620a78107ecbab33fb53eba921189d45.zip |
Update OCaml react to version 2.4.3
Diffstat (limited to 'pkgs/development/ocaml-modules/react')
-rw-r--r-- | pkgs/development/ocaml-modules/react/default.nix | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/pkgs/development/ocaml-modules/react/default.nix b/pkgs/development/ocaml-modules/react/default.nix index 02420204dbf..a69ef9d446c 100644 --- a/pkgs/development/ocaml-modules/react/default.nix +++ b/pkgs/development/ocaml-modules/react/default.nix @@ -1,34 +1,25 @@ -{stdenv, fetchurl, ocaml}: - -let - ocaml_version = (builtins.parseDrvName ocaml.name).version; - version = "0.9.2"; -in +{stdenv, fetchurl, ocaml, findlib, ocaml_oasis}: stdenv.mkDerivation { - name = "ocaml-react-${version}"; + name = "ocaml-react-0.9.4"; src = fetchurl { - url = "http://erratique.ch/software/react/releases/react-${version}.tbz"; - sha256 = "0fiaxzfxv8pc82d31jz85zryz06k84is0l3sn5g0di5mpc5falxr"; + url = http://github.com/dbuenzli/react/archive/v0.9.4.tar.gz; + sha256 = "16k0kx93kd45s7pigkzvirfsbr22xhby0y88y86p473qxzc6ngrm"; }; - buildInputs = [ocaml]; + buildInputs = [ocaml findlib ocaml_oasis]; + + createFindlibDestdir = true; - buildCommand = '' - export INSTALLDIR=$out/lib/ocaml/${ocaml_version}/site-lib/react - tar xjf $src - cd react-* - substituteInPlace src/META --replace '+react' $INSTALLDIR - chmod +x build - ./build - ./build install - ''; + configurePhase = "oasis setup && ocaml setup.ml -configure --prefix $out"; + buildPhase = "ocaml setup.ml -build"; + installPhase = "ocaml setup.ml -install"; meta = { homepage = http://erratique.ch/software/react; description = "Applicative events and signals for OCaml"; - license = "BSD"; + license = stdenv.lib.licenses.bsd3; platforms = ocaml.meta.platforms; maintainers = [ stdenv.lib.maintainers.z77z |