Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 logs, 6 fmt, 7 ptime, 8 mirage-clock, 9 cmdliner, 10 lwt, 11 alcotest, 12}: 13 14buildDunePackage rec { 15 pname = "mirage-logs"; 16 version = "2.1.0"; 17 18 duneVersion = "3"; 19 20 src = fetchurl { 21 url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-${version}.tbz"; 22 hash = "sha256-rorCsgw7QCQmjotr465KShQGWdoUM88djpwgqwBGnLs="; 23 }; 24 25 propagatedBuildInputs = [ 26 logs 27 fmt 28 ptime 29 mirage-clock 30 cmdliner 31 ]; 32 33 doCheck = true; 34 checkInputs = [ 35 lwt 36 alcotest 37 ]; 38 39 meta = { 40 description = "Reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps"; 41 homepage = "https://github.com/mirage/mirage-logs"; 42 license = lib.licenses.isc; 43 maintainers = [ lib.maintainers.vbgl ]; 44 }; 45}