nixpkgs/pkgs/os-specific/linux/health-check/default.nix

32 lines
808 B
Nix
Raw Normal View History

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