Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, ocaml, fetchurl, alcotest }:
2
3buildDunePackage rec {
4 pname = "duration";
5 version = "0.2.1";
6
7 duneVersion = "3";
8
9 src = fetchurl {
10 url = "https://github.com/hannesm/duration/releases/download/v${version}/duration-${version}.tbz";
11 hash = "sha256-xzjB84z7mYIMEhzT3fgZ3ksiKPDVDqy9HMPOmefHHis=";
12 };
13
14 doCheck = lib.versionAtLeast ocaml.version "4.08";
15 checkInputs = [ alcotest ];
16
17 meta = {
18 homepage = "https://github.com/hannesm/duration";
19 description = "Conversions to various time units";
20 license = lib.licenses.isc;
21 maintainers = [ lib.maintainers.vbgl ];
22 };
23
24}