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