Skip to content

Commit

Permalink
ocamlPackages.yojson: 1.2.3 -> 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Oct 22, 2017
1 parent c7dec7a commit 97c5dfc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkgs/development/ocaml-modules/yojson/default.nix
@@ -1,15 +1,22 @@
{ stdenv, fetchzip, ocaml, findlib, cppo, easy-format, biniou }:
let
pname = "yojson";
version = "1.2.3";
param =
if stdenv.lib.versionAtLeast ocaml.version "4.01" then {
version = "1.3.3";
sha256 = "02l11facbr6bxrxq95vrcp1dxapp02kv7g4gq8rm62pb3dj5c6g7";
} else {
version = "1.2.3";
sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";
};
in
stdenv.mkDerivation {

name = "ocaml-${pname}-${version}";
name = "ocaml${ocaml.version}-${pname}-${param.version}";

src = fetchzip {
url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz";
sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";
url = "https://github.com/mjambon/${pname}/archive/v${param.version}.tar.gz";
inherit (param) sha256;
};

buildInputs = [ ocaml findlib ];
Expand Down

0 comments on commit 97c5dfc

Please sign in to comment.