diff options
author | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-05-20 21:51:33 +0200 |
---|---|---|
committer | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-05-20 21:51:33 +0200 |
commit | 3a2ccb570dedd7eb17226c01078b981a5129c7ea (patch) | |
tree | c626fe527750fe6d8aea722a555053062d2a955c /pkgs/applications/misc/pstree | |
parent | a43fb1def6fe72fcc751eecc124714bba6e36221 (diff) |
Revert "pstree: remove and alias to psmisc"
This reverts commit 4f8bf685f83c2e3ed15840e39578fed479257c17. Reason: psmisc is Linux-platforms only
Diffstat (limited to 'pkgs/applications/misc/pstree')
-rw-r--r-- | pkgs/applications/misc/pstree/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pstree/default.nix b/pkgs/applications/misc/pstree/default.nix new file mode 100644 index 0000000000000..3cd52af6d3218 --- /dev/null +++ b/pkgs/applications/misc/pstree/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "pstree-2.39"; + + src = fetchurl { + urls = [ + "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz" + "https://distfiles.macports.org/pstree/${name}.tar.gz" + ]; + sha256 = "17s7v15c4gryjpi11y1xq75022nkg4ggzvjlq2dkmyg67ssc76vw"; + }; + + unpackPhase = "unpackFile \$src; sourceRoot=."; + + buildPhase = "pwd; $CC -o pstree pstree.c"; + installPhase = "mkdir -p \$out/bin; cp pstree \$out/bin"; + + meta = { + description = "Show the set of running processes as a tree"; + license = "GPL"; + maintainers = [ ]; + platforms = stdenv.lib.platforms.unix; + }; +} |