summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-10-07 17:59:13 -0500
committerGitHub <noreply@github.com>2019-10-07 17:59:13 -0500
commitf7dfe59ced1c85b639143eb623f68ae0f659d2b9 (patch)
treeaf7c25158ca5d1b72dcea433fa3ef014824bfb9e
parentb51fbeb77cf1188d2a7e3035c44a345e963682df (diff)
parent93818840793620b11d73f9eac0ab29bea8154caa (diff)
downloadnixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar.gz
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar.bz2
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar.lz
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar.xz
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.tar.zst
nixpkgs-f7dfe59ced1c85b639143eb623f68ae0f659d2b9.zip
Merge pull request #68916 from dtzWill/feature/health-check
health-check: init at 0.03.02
-rw-r--r--pkgs/os-specific/linux/health-check/default.nix28
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/health-check/default.nix b/pkgs/os-specific/linux/health-check/default.nix
new file mode 100644
index 00000000000..c90029907c0
--- /dev/null
+++ b/pkgs/os-specific/linux/health-check/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, fetchurl, json_c, libbsd }:
+
+stdenv.mkDerivation rec {
+  pname = "health-check";
+  version = "0.03.02";
+
+  src = fetchurl {
+    url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "12n2qp5lrlahkgrkwy3mjm0nscz6yhhh80z4xmd2n96pn8f3d4hh";
+  };
+
+  buildInputs = [ json_c libbsd ];
+
+  makeFlags = [ "JSON_OUTPUT=y" "FNOTIFY=y" ];
+
+  installFlags = [
+    "BINDIR=${placeholder "out"}/bin"
+    "MANDIR=${placeholder "out"}/share/man/man8"
+  ];
+
+  meta = with lib; {
+    description = "Process monitoring tool";
+    homepage = "https://kernel.ubuntu.com/~cking/health-check/";
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ dtzWill ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index df3b4b8c82f..fc971ca476c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -15643,6 +15643,8 @@ in
 
   hdparm = callPackage ../os-specific/linux/hdparm { };
 
+  health-check = callPackage ../os-specific/linux/health-check { };
+
   hibernate = callPackage ../os-specific/linux/hibernate { };
 
   hostapd = callPackage ../os-specific/linux/hostapd { };