ocamlPackages.jsonm: 0.9.1 -> 1.0.0

wip/yesman
Vincent Laporte 8 years ago
parent 190cc67310
commit 221f20413d
  1. 15
      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";

Loading…
Cancel
Save