mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
26 lines
635 B
Nix
26 lines
635 B
Nix
{ 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;
|
|
};
|
|
}
|