2021-01-10 17:48:45 +00:00
|
|
|
{ lib, fetchzip, ppx_deriving, ppxfind, buildDunePackage, ounit }:
|
2020-01-14 08:41:59 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lens";
|
2021-01-10 17:48:45 +00:00
|
|
|
version = "1.2.4";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-01-14 08:41:59 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/pdonadeo/ocaml-lens/archive/v${version}.tar.gz";
|
2021-01-10 17:48:45 +00:00
|
|
|
sha256 = "18mv7n5rcix3545mc2qa2f9xngks4g4kqj2g878qj7r3cy96kklv";
|
2020-01-14 08:41:59 +00:00
|
|
|
};
|
|
|
|
|
2021-01-10 17:48:45 +00:00
|
|
|
minimumOCamlVersion = "4.10";
|
2020-01-14 08:41:59 +00:00
|
|
|
buildInputs = [ ppx_deriving ppxfind ];
|
|
|
|
|
2021-01-10 17:48:45 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
2020-01-14 08:41:59 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pdonadeo/ocaml-lens";
|
2020-01-14 08:41:59 +00:00
|
|
|
description = "Functional lenses";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kazcw
|
|
|
|
];
|
2021-01-31 13:15:46 +00:00
|
|
|
broken = true; # Not compatible with ppx_deriving ≥ 5.0
|
2020-01-14 08:41:59 +00:00
|
|
|
};
|
|
|
|
}
|