1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/os-specific/linux/radeontop/default.nix
Tobias Geerinckx-Rice 97ae36691e radeontop 2015-05-28 -> 2015-06-24
New features:
- Make coloured output toggleable

Fixes:
- Release libpciaccess resources
- Make the check for quit case-insensitive
2015-06-24 16:43:04 +02:00

40 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, pkgconfig, gettext, ncurses, libdrm, libpciaccess }:
let version = "2015-06-24"; in
stdenv.mkDerivation {
name = "radeontop-${version}";
src = fetchFromGitHub {
sha256 = "06cn7lixxx94c1fki0plg9f4rdy459mgi9yl80m0k1a20jqykz2a";
rev = "976cae0be0ffb9142d5e63e435960c6b2bb0eb34";
repo = "radeontop";
owner = "clbr";
};
buildInputs = [ ncurses libdrm libpciaccess ];
nativeBuildInputs = [ pkgconfig gettext ];
enableParallelBuilding = true;
patchPhase = ''
substituteInPlace getver.sh --replace ver=unknown ver=${version}
'';
makeFlags = "PREFIX=$(out)";
meta = with stdenv.lib; {
description = "Top-like tool for viewing AMD Radeon GPU utilization";
longDescription = ''
View GPU utilization, both for the total activity percent and individual
blocks. Supports R600 and later cards: even Southern Islands should work.
Works with both the open drivers and AMD Catalyst. Total GPU utilization
is also valid for OpenCL loads; the other blocks are only useful for GL
loads. Requires root rights or other permissions to read /dev/mem.
'';
homepage = https://github.com/clbr/radeontop;
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ rycee nckx ];
};
}