ocaml-yojson: 1.1.8 -> 1.2.3

This commit is contained in:
Vincent Laporte 2015-11-30 18:07:36 +01:00
parent fc8e28513d
commit 0b7fd5f621

View File

@ -1,16 +1,15 @@
{stdenv, fetchurl, ocaml, findlib, cppo, easy-format, biniou}:
{ stdenv, fetchzip, ocaml, findlib, cppo, easy-format, biniou }:
let
pname = "yojson";
version = "1.1.8";
webpage = "http://mjambon.com/${pname}.html";
version = "1.2.3";
in
stdenv.mkDerivation {
name = "ocaml-${pname}-${version}";
src = fetchurl {
url = "http://mjambon.com/releases/${pname}/${pname}-${version}.tar.gz";
sha256 = "0ayx17dimnpavdfyq6dk9xv2x1fx69by85vc6vl3nqxjkcv5d2rv";
src = fetchzip {
url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz";
sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";
};
buildInputs = [ ocaml findlib ];
@ -27,7 +26,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib; {
description = "An optimized parsing and printing library for the JSON format";
homepage = "${webpage}";
homepage = "http://mjambon.com/${pname}.html";
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms;