diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-12-04 10:15:09 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-01-13 06:38:08 +0000 |
commit | 221f20413d4efe044f939f0af2c0851c58a2420b (patch) | |
tree | cbc3d4882a16ed0456443c6663fc2ca213752d7a /pkgs/development/ocaml-modules/jsonm/default.nix | |
parent | 190cc673109ec9112cf857293982bd8ec561e4f2 (diff) |
ocamlPackages.jsonm: 0.9.1 -> 1.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/jsonm/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/jsonm/default.nix | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/jsonm/default.nix b/pkgs/development/ocaml-modules/jsonm/default.nix index f473527c15c8d..fb73df808fe75 100644 --- a/pkgs/development/ocaml-modules/jsonm/default.nix +++ b/pkgs/development/ocaml-modules/jsonm/default.nix @@ -1,24 +1,23 @@ -{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, uutf }: +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, opam, uutf }: -let version = "0.9.1"; in +let version = "1.0.0"; in stdenv.mkDerivation { - name = "ocaml-jsonm-${version}"; + name = "ocaml${ocaml.version}-jsonm-${version}"; src = fetchurl { url = "http://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz"; - sha256 = "0wszqrmx8iqlwzvs76fjf4sqh15mv20yjrbyhkd348yq8nhdrm1z"; + sha256 = "1v3ln6d965lplj28snjdqdqablpp1kx8bw2cfx0m6i157mqyln62"; }; - buildInputs = [ ocaml findlib ocamlbuild ]; + buildInputs = [ ocaml findlib ocamlbuild topkg opam ]; propagatedBuildInputs = [ uutf ]; unpackCmd = "tar xjf $src"; - configurePhase = "ocaml setup.ml -configure --prefix $prefix"; - buildPhase = "ocaml setup.ml -build"; createFindlibDestdir = true; - installPhase = "ocaml setup.ml -install"; + + inherit (topkg) buildPhase installPhase; meta = { description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format"; |