nixpkgs/pkgs/applications/misc/pstree/default.nix

22 lines
548 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2013-05-05 21:45:06 +02:00
name = "pstree-2.36";
src = fetchurl {
url = "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz";
2013-05-05 21:45:06 +02:00
sha256 = "1vx4fndmkkx3bmcv71rpzjjbn24hlfs10pl99dsfhbx16a2d41cx";
};
unpackPhase = "unpackFile \$src; sourceRoot=.";
2015-01-28 12:35:54 +01:00
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 = [ stdenv.lib.maintainers.mornfall ];
};
}