btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / da / das_watchdog / package.nix
blob141e16181cec63432339c0f246b7eb02b46d32c2
1 { lib, stdenv, fetchFromGitHub, libgtop, xmessage, which, pkg-config }:
3 stdenv.mkDerivation {
4   pname = "das_watchdog";
5   version = "unstable-2015-09-12";
7   src = fetchFromGitHub {
8     owner = "kmatheussen";
9     repo = "das_watchdog";
10     rev = "5ac0db0b98e5b4e690aca0aa7fb6ec60ceddcb06";
11     sha256 = "sha256-eacUn/gYCEHtHdQf3lBPYvY3kfN3Bik7AolAPpbbwQs=";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ libgtop xmessage which ];
17   installPhase = ''
18     mkdir -p $out/bin/
19     cp das_watchdog $out/bin/
20     cp test_rt $out/bin/
21   '';
23   meta = with lib; {
24     homepage = "https://github.com/kmatheussen/das_watchdog";
25     description = "General watchdog for the linux operating system";
26     longDescription = ''
27       It should run in the background at all times to ensure a realtime process
28       won't hang the machine.";
29     '';
30     license = licenses.free;
31     maintainers = [ maintainers.magnetophon ];
32     platforms = platforms.linux;
33   };