Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 30 lines 683 B view raw
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 alcotest, 6}: 7 8buildDunePackage rec { 9 pname = "ocaml-version"; 10 version = "4.0.0"; 11 12 src = fetchurl { 13 url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-${version}.tbz"; 14 hash = "sha256-+xV3bFFWwp2s4OtbBCJCR33l+LctWQVkgwWMrOciPms="; 15 }; 16 17 checkInputs = [ alcotest ]; 18 19 doCheck = true; 20 21 minimalOCamlVersion = "4.07"; 22 duneVersion = "3"; 23 24 meta = with lib; { 25 description = "Manipulate, parse and generate OCaml compiler version strings"; 26 homepage = "https://github.com/ocurrent/ocaml-version"; 27 license = licenses.isc; 28 maintainers = with maintainers; [ vbgl ]; 29 }; 30}