radeontop: 2016-07-03 -> 2016-07-04

Add support for unprivileged use on both the Linux console and X.
This commit is contained in:
Tobias Geerinckx-Rice 2016-07-04 22:31:40 +02:00
parent 65364cc83c
commit cb86518fd3
No known key found for this signature in database
GPG Key ID: 91CCDB9B48541B99

View File

@ -1,18 +1,19 @@
{ stdenv, fetchFromGitHub, pkgconfig, gettext, ncurses, libdrm, libpciaccess }:
{ stdenv, fetchFromGitHub, pkgconfig, gettext, makeWrapper
, ncurses, libdrm, libpciaccess, libxcb }:
stdenv.mkDerivation rec {
name = "radeontop-${version}";
version = "2016-07-03";
version = "2016-07-04";
src = fetchFromGitHub {
sha256 = "0achjjhq1fnka8fvn78jbd7zjnra2wcalvr7k4lj3c28x15k1iv8";
rev = "761ffe28696cdadc96c8cf302b58c9ef71a2eae1";
sha256 = "07pj5c3shnxljwq0hkksw7qnp8kb3n5ngihdmi4fqbmyz8in2vm5";
rev = "bb3ed18aa8877f2816348ca9f016bb61d67e636f";
repo = "radeontop";
owner = "clbr";
};
buildInputs = [ ncurses libdrm libpciaccess ];
nativeBuildInputs = [ pkgconfig gettext ];
buildInputs = [ ncurses libdrm libpciaccess libxcb ];
nativeBuildInputs = [ pkgconfig gettext makeWrapper ];
enableParallelBuilding = true;
@ -22,6 +23,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/sbin/radeontop \
--prefix LD_LIBRARY_PATH : $out/lib
'';
meta = with stdenv.lib; {
description = "Top-like tool for viewing AMD Radeon GPU utilization";
longDescription = ''