2021-08-05 21:33:18 +00:00
|
|
|
{ lib, fetchFromGitHub, ppx_deriving, ppxlib, buildDunePackage, ounit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lens";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.2.5";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdonadeo";
|
|
|
|
repo = "ocaml-lens";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1k23n7pa945fk6nbaq6nlkag5kg97wsw045ghz4gqp8b9i2im3vn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
minimalOCamlVersion = "4.10";
|
|
|
|
buildInputs = [ ppx_deriving ppxlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pdonadeo/ocaml-lens";
|
|
|
|
description = "Functional lenses";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kazcw
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|