2021-12-21 02:18:32 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, json_c, libbsd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "health-check";
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "0.03.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ColinIanKing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V${version}";
|
|
|
|
hash = "sha256-1dm7tl7DHv1CzuLe1/UewDSUOanO0hN+STkPrAHcZmI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ json_c libbsd ];
|
|
|
|
|
|
|
|
makeFlags = [ "JSON_OUTPUT=y" "FNOTIFY=y" ];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
|
|
|
"MANDIR=${placeholder "out"}/share/man/man8"
|
2021-12-21 02:18:32 +00:00
|
|
|
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Process monitoring tool";
|
2021-12-21 02:18:32 +00:00
|
|
|
homepage = "https://github.com/ColinIanKing/health-check";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|