mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
ocamlPackages.ppx_deriving_yojson: 3.7.0 → 3.9.0
This commit is contained in:
parent
b4fda70c49
commit
083249aeb5
@ -1,14 +1,17 @@
|
||||
{ lib, buildDunePackage, fetchFromGitHub, ocaml, ppxlib, ounit
|
||||
, ppx_deriving, yojson
|
||||
{ lib, buildDunePackage, fetchFromGitHub, ocaml, ppxlib, ounit, ounit2
|
||||
, ppx_deriving, result, yojson
|
||||
}:
|
||||
|
||||
let param =
|
||||
if lib.versionAtLeast ppxlib.version "0.26" then {
|
||||
version = "3.7.0";
|
||||
sha256 = "sha256-niKxn1fX0mL1MhlZvbN1wgRed9AHh+z9s6l++k1VX9k=";
|
||||
if lib.versionAtLeast ppxlib.version "0.30" then {
|
||||
version = "3.9.0";
|
||||
sha256 = "sha256-0d6YcBkeFoHXffCYjLIIvruw8B9ZB6NbUijhTv9uyN8=";
|
||||
checkInputs = [ ounit2 ];
|
||||
} else {
|
||||
version = "3.6.1";
|
||||
sha256 = "1icz5h6p3pfj7my5gi7wxpflrb8c902dqa17f9w424njilnpyrbk";
|
||||
checkInputs = [ ounit ];
|
||||
propagatedBuildInputs = [ result ];
|
||||
}
|
||||
; in
|
||||
|
||||
@ -25,10 +28,11 @@ buildDunePackage rec {
|
||||
inherit (param) sha256;
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ppxlib ppx_deriving yojson ];
|
||||
propagatedBuildInputs = [ ppxlib ppx_deriving yojson ]
|
||||
++ param.propagatedBuildInputs or [];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
checkInputs = [ ounit ];
|
||||
inherit (param) checkInputs;
|
||||
|
||||
meta = {
|
||||
description = "Yojson codec generator for OCaml >= 4.04";
|
||||
|
Loading…
Reference in New Issue
Block a user