about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/yojson/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/yojson/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/yojson/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/ocaml-modules/yojson/default.nix b/pkgs/development/ocaml-modules/yojson/default.nix
index 0b40b68a7e83..34bcc08275bd 100644
--- a/pkgs/development/ocaml-modules/yojson/default.nix
+++ b/pkgs/development/ocaml-modules/yojson/default.nix
@@ -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;