nixpkgs-suyu/pkgs/development/ocaml-modules/lens/default.nix

31 lines
662 B
Nix
Raw Normal View History

2021-07-30 07:49:50 +02:00
{ lib, fetchFromGitHub, ppx_deriving, ppxlib, buildDunePackage, ounit }:
buildDunePackage rec {
pname = "lens";
2021-07-30 07:49:50 +02:00
version = "1.2.5";
2021-01-10 18:48:45 +01:00
useDune2 = true;
2021-07-30 07:49:50 +02:00
src = fetchFromGitHub {
owner = "pdonadeo";
repo = "ocaml-lens";
rev = "v${version}";
sha256 = "1k23n7pa945fk6nbaq6nlkag5kg97wsw045ghz4gqp8b9i2im3vn";
};
2021-07-30 07:49:50 +02:00
minimalOCamlVersion = "4.10";
buildInputs = [ ppx_deriving ppxlib ];
2021-01-10 18:48:45 +01:00
doCheck = true;
checkInputs = [ ounit ];
meta = with lib; {
homepage = "https://github.com/pdonadeo/ocaml-lens";
description = "Functional lenses";
license = licenses.bsd3;
maintainers = with maintainers; [
kazcw
];
};
}