2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2009-10-02 18:25:59 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-18 11:50:46 +02:00
|
|
|
name = "pstree-2.39";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2016-02-14 08:36:25 +01:00
|
|
|
urls = [
|
|
|
|
"http://www.sfr-fresh.com/unix/misc/${name}.tar.gz"
|
|
|
|
"http://distfiles.macports.org/pstree/${name}.tar.gz"
|
|
|
|
];
|
2015-08-18 11:50:46 +02:00
|
|
|
sha256 = "17s7v15c4gryjpi11y1xq75022nkg4ggzvjlq2dkmyg67ssc76vw";
|
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
|
|
|
|
2015-01-28 12:35:54 +01:00
|
|
|
buildPhase = "pwd; $CC -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";
|
2018-01-17 06:13:23 +01:00
|
|
|
maintainers = [ ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-07-28 13:55:54 +02:00
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
}
|