summary refs log tree commit diff
path: root/pkgs/os-specific/linux/procps/watch.nix
blob: 5fdd1287a647d1fab6177985a912b10f3a0a8abf (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
25
{ stdenv, fetchurl, ncurses }:

stdenv.mkDerivation {
  name = "watch-0.2.0";

  src = fetchurl {
    url = http://procps.sourceforge.net/procps-3.2.8.tar.gz;
    sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
  };

  buildInputs = [ ncurses ];

  makeFlags = "watch usrbin_execdir=$(out)/bin" +
              (if stdenv.isDarwin then " PKG_LDFLAGS=" else "");

  enableParallelBuilding = true;

  installPhase = "mkdir $out; mkdir -p $out/bin; cp -p watch $out/bin";

  meta = {
    homepage = http://sourceforge.net/projects/procps/;
    description = "Utility for watch the output of a given command at intervals";
    platforms = stdenv.lib.platforms.unix;
  };
}