7 stdenv.mkDerivation rec {
13 "https://distfiles.macports.org/${pname}/${pname}-${version}.tar.gz"
14 "https://fossies.org/linux/misc/${pname}-${version}.tar.gz"
15 "ftp://ftp.thp.uni-duisburg.de/pub/source/${pname}-${version}.tar.gz"
17 sha256 = "17s7v15c4gryjpi11y1xq75022nkg4ggzvjlq2dkmyg67ssc76vw";
23 $CC $NIX_CFLAGS -o pstree pstree.c
29 install -Dm0555 ${pname} -t $out/bin
30 install -Dm0444 ${pname}.1 -t $out/share/man/man1
35 description = "Show the set of running processes as a tree";
36 homepage = "http://www.thp.uni-duisburg.de/pstree/";
37 license = licenses.gpl2;
38 maintainers = [ maintainers.c0bw3b ];
39 platforms = platforms.unix;
40 priority = 5; # Lower than psmisc also providing pstree on Linux platforms
41 mainProgram = "pstree";