about summary refs log tree commit diff
path: root/pkgs/tools/system/loadwatch/default.nix
blob: 27e33a22d4b9c146be427f66d2f3ee2f382d1a78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchgit }:

stdenv.mkDerivation {
  pname = "loadwatch";
  version = "1.1-1-g6d2544c";

  src = fetchgit {
    url = "git://woffs.de/git/fd/loadwatch.git";
    sha256 = "1bhw5ywvhyb6snidsnllfpdi1migy73wg2gchhsfbcpm8aaz9c9b";
    rev = "6d2544c0caaa8a64bbafc3f851e06b8056c30e6e";
  };

  installPhase = ''
    mkdir -p $out/bin
    install loadwatch lw-ctl $out/bin
  '';

  meta = with lib; {
    description = "Run a program using only idle cycles";
    license = licenses.gpl2;
    maintainers = with maintainers; [ woffs ];
    platforms = platforms.all;
  };
}