Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 ppx_deriving, 5 ppxlib, 6 buildDunePackage, 7 ounit, 8}: 9 10buildDunePackage rec { 11 pname = "lens"; 12 version = "1.2.5"; 13 14 duneVersion = "3"; 15 16 src = fetchFromGitHub { 17 owner = "pdonadeo"; 18 repo = "ocaml-lens"; 19 rev = "v${version}"; 20 sha256 = "1k23n7pa945fk6nbaq6nlkag5kg97wsw045ghz4gqp8b9i2im3vn"; 21 }; 22 23 minimalOCamlVersion = "4.10"; 24 buildInputs = [ 25 ppx_deriving 26 ppxlib 27 ]; 28 29 doCheck = true; 30 checkInputs = [ ounit ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/pdonadeo/ocaml-lens"; 34 description = "Functional lenses"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ 37 kazcw 38 ]; 39 }; 40}