nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, ocaml, fetchurl, alcotest }:
2
3buildDunePackage rec {
4 pname = "duration";
5 version = "0.1.3";
6
7 useDune2 = true;
8
9 src = fetchurl {
10 url = "https://github.com/hannesm/duration/releases/download/${version}/duration-${version}.tbz";
11 sha256 = "0m9r0ayhpl98g9vdxrbjdcllns274jilic5v8xj1x7dphw21p95h";
12 };
13
14 doCheck = lib.versionAtLeast ocaml.version "4.05";
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}