1{ stdenv, fetchurl, ncurses }:
2
3stdenv.mkDerivation {
4 name = "watch-0.2.0";
5
6 src = fetchurl {
7 url = http://procps.sourceforge.net/procps-3.2.8.tar.gz;
8 sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
9 };
10
11 buildInputs = [ ncurses ];
12
13 makeFlags = "watch usrbin_execdir=$(out)/bin" +
14 (if stdenv.isDarwin then " PKG_LDFLAGS=" else "");
15
16 enableParallelBuilding = true;
17
18 installPhase = "mkdir $out; mkdir -p $out/bin; cp -p watch $out/bin";
19
20 meta = {
21 homepage = https://sourceforge.net/projects/procps/;
22 description = "Utility for watch the output of a given command at intervals";
23 platforms = stdenv.lib.platforms.unix;
24 };
25}