2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2009-10-02 18:25:59 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-05 21:45:06 +02:00
|
|
|
name = "pstree-2.36";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2010-01-21 11:06:17 +01:00
|
|
|
url = "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz";
|
2013-05-05 21:45:06 +02:00
|
|
|
sha256 = "1vx4fndmkkx3bmcv71rpzjjbn24hlfs10pl99dsfhbx16a2d41cx";
|
2007-09-03 14:10:57 +02:00
|
|
|
};
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
unpackPhase = "unpackFile \$src; sourceRoot=.";
|
2009-10-02 18:25:59 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildPhase = "pwd; gcc -o pstree pstree.c";
|
2012-01-18 21:16:00 +01:00
|
|
|
installPhase = "mkdir -p \$out/bin; cp pstree \$out/bin";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2009-10-02 18:25:59 +02:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Show the set of running processes as a tree";
|
|
|
|
license = "GPL";
|
2014-09-13 13:51:39 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
2010-07-28 13:55:54 +02:00
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
}
|