1{ lib, fetchurl, buildDunePackage, alcotest }:
2
3buildDunePackage rec {
4 pname = "ocaml-version";
5 version = "3.6.1";
6
7 src = fetchurl {
8 url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-${version}.tbz";
9 hash = "sha256-AKCaXUehJ3V8uET1tUDDbIzI8lZv5aygxhIbR21xnTI=";
10 };
11
12 checkInputs = [ alcotest ];
13
14 doCheck = true;
15
16 minimalOCamlVersion = "4.07";
17 duneVersion = "3";
18
19 meta = with lib; {
20 description = "Manipulate, parse and generate OCaml compiler version strings";
21 homepage = "https://github.com/ocurrent/ocaml-version";
22 license = licenses.isc;
23 maintainers = with maintainers; [ vbgl ];
24 };
25}