mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
30 lines
765 B
Nix
30 lines
765 B
Nix
{ lib, fetchurl, stdenv, ncurses,
|
|
IOKit, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "htop";
|
|
version = "2.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://hisham.hm/htop/releases/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
|
|
};
|
|
|
|
nativeBuildInputs = [ python ];
|
|
buildInputs =
|
|
[ ncurses ] ++
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
|
|
|
prePatch = ''
|
|
patchShebangs scripts/MakeHeader.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An interactive process viewer for Linux";
|
|
homepage = https://hisham.hm/htop/;
|
|
license = licenses.gpl2Plus;
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
|
|
maintainers = with maintainers; [ rob relrod ];
|
|
};
|
|
}
|