Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 alcotest, 6}: 7 8buildDunePackage rec { 9 pname = "ocaml-version"; 10 version = "4.0.1"; 11 12 src = fetchurl { 13 url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-${version}.tbz"; 14 hash = "sha256-uZ7c47uaHpTt1XyCcsxo/E7P2grk09UzRTEnUBKYKNA="; 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}