ocamlPackages.jsonm: 0.9.1 -> 1.0.0
This commit is contained in:
parent
190cc67310
commit
221f20413d
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml-jsonm-${version}";
|
name = "ocaml${ocaml.version}-jsonm-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz";
|
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 ];
|
propagatedBuildInputs = [ uutf ];
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
configurePhase = "ocaml setup.ml -configure --prefix $prefix";
|
|
||||||
buildPhase = "ocaml setup.ml -build";
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
installPhase = "ocaml setup.ml -install";
|
|
||||||
|
inherit (topkg) buildPhase installPhase;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format";
|
description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format";
|
||||||
|
Loading…
Reference in New Issue
Block a user