48 lines
587 B
Nix
48 lines
587 B
Nix
{
|
|
buildDunePackage,
|
|
prometheus,
|
|
asetmap,
|
|
astring,
|
|
cohttp-lwt,
|
|
cohttp-lwt-unix,
|
|
cmdliner,
|
|
fmt,
|
|
logs,
|
|
lwt,
|
|
re,
|
|
alcotest,
|
|
alcotest-lwt,
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "prometheus-app";
|
|
inherit (prometheus)
|
|
version
|
|
src
|
|
;
|
|
|
|
propagatedBuildInputs = [
|
|
asetmap
|
|
astring
|
|
cmdliner
|
|
cohttp-lwt
|
|
cohttp-lwt-unix
|
|
fmt
|
|
logs
|
|
lwt
|
|
prometheus
|
|
re
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
alcotest-lwt
|
|
];
|
|
|
|
meta = prometheus.meta // {
|
|
description = "A web-server reporting prometheus metrics.";
|
|
};
|
|
}
|