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