@@ -1,12 +1,14 @@
1−{ stdenv, lib, fetchurl, json_c, libbsd }:
1+{ stdenv, lib, fetchFromGitHub, json_c, libbsd }:
22
33stdenv.mkDerivation rec {
44 pname = "health-check";
5− version = "0.03.05";
5+ version = "0.03.10";
66
7− src = fetchurl {
8− url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
9− sha256 = "1qxmkdl4pa043yg4kq5ffapm0c2cmm64h3v2c3xhnx0ad5pbhy5z";
7+ src = fetchFromGitHub {
8+ owner = "ColinIanKing";
9+ repo = pname;
10+ rev = "V${version}";
11+ hash = "sha256-1dm7tl7DHv1CzuLe1/UewDSUOanO0hN+STkPrAHcZmI=";
1012 };
1113
1214 buildInputs = [ json_c libbsd ];
@@ -16,11 +18,12 @@ stdenv.mkDerivation rec {
1618 installFlags = [
1719 "BINDIR=${placeholder "out"}/bin"
1820 "MANDIR=${placeholder "out"}/share/man/man8"
21+ "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
1922 ];
2023
2124 meta = with lib; {
2225 description = "Process monitoring tool";
23− homepage = "https://kernel.ubuntu.com/~cking/health-check/";
26+ homepage = "https://github.com/ColinIanKing/health-check";
2427 license = licenses.gpl2;
2528 platforms = platforms.linux;
2629 maintainers = with maintainers; [ dtzWill ];