git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.yojson: 1.4.1 -> 1.6.0
commitb60b304cefa1f29dfb791372c1699fceb47c27a6 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 13 Feb 2019, 10:53 (8 years ago) parent32767d1
1 file changed+8−8
pkgs/development/ocaml-modules/yojson/default.nix+8−8
pkgs/development/ocaml-modules/yojson/default.nix+8−8
@@ -2,15 +2,16 @@
22let
33 pname = "yojson";
44 param =
5− if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
6− version = "1.4.1";
7− sha256 = "0nwsfkmqpyfab4rxq76q8ff7giyanghw08094jyrp275v99zdjr9";
5+ if stdenv.lib.versionAtLeast ocaml.version "4.02" then rec {
6+ version = "1.6.0";
7+ url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
8+ sha256 = "1h73zkgqs6cl9y7p2l0cgjwyqa1fzcrnzv3k6w7wyq2p1q5m84xh";
89 buildInputs = [ dune ];
910 extra = { inherit (dune) installPhase; };
10− } else {
11+ } else rec {
1112 version = "1.2.3";
13+ url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz";
1214 sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";
13− buildInputs = [];
1415 extra = {
1516 createFindlibDestdir = true;
1617
@@ -25,11 +26,10 @@ stdenv.mkDerivation ({
2526 name = "ocaml${ocaml.version}-${pname}-${param.version}";
2627
2728 src = fetchzip {
28− url = "https://github.com/mjambon/${pname}/archive/v${param.version}.tar.gz";
29− inherit (param) sha256;
29+ inherit (param) url sha256;
3030 };
3131
32− buildInputs = [ ocaml findlib ] ++ param.buildInputs;
32+ buildInputs = [ ocaml findlib ] ++ (param.buildInputs or []);
3333
3434 propagatedBuildInputs = [ cppo easy-format biniou ];
3535