3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.jsonm: 0.9.1 -> 1.0.0

This commit is contained in:
Vincent Laporte 2016-12-04 10:15:09 +00:00
parent 190cc67310
commit 221f20413d

View file

@ -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";