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