mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
ocamlPackages.yojson: 1.2.3 -> 1.3.3
This commit is contained in:
parent
c7dec7a4b8
commit
97c5dfc55e
@ -1,15 +1,22 @@
|
|||||||
{ stdenv, fetchzip, ocaml, findlib, cppo, easy-format, biniou }:
|
{ stdenv, fetchzip, ocaml, findlib, cppo, easy-format, biniou }:
|
||||||
let
|
let
|
||||||
pname = "yojson";
|
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
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
name = "ocaml-${pname}-${version}";
|
name = "ocaml${ocaml.version}-${pname}-${param.version}";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz";
|
url = "https://github.com/mjambon/${pname}/archive/v${param.version}.tar.gz";
|
||||||
sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";
|
inherit (param) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ];
|
buildInputs = [ ocaml findlib ];
|
||||||
|
Loading…
Reference in New Issue
Block a user