2019-09-22 06:58:42 -07:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
|
|
|
, qtbase, qtcharts, qmake, libXrandr, libdrm
|
|
|
|
}:
|
2017-03-26 10:13:09 -07:00
|
|
|
|
2019-09-22 06:58:42 -07:00
|
|
|
mkDerivation rec {
|
2017-03-26 10:13:09 -07:00
|
|
|
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "radeon-profile";
|
2020-10-23 02:32:58 -07:00
|
|
|
version = "20200824";
|
2017-03-26 10:13:09 -07:00
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2017-11-05 05:34:48 -08:00
|
|
|
buildInputs = [ qtbase qtcharts libXrandr libdrm ];
|
2017-03-26 10:13:09 -07:00
|
|
|
|
|
|
|
src = (fetchFromGitHub {
|
|
|
|
owner = "marazmista";
|
|
|
|
repo = "radeon-profile";
|
|
|
|
rev = version;
|
2020-10-23 02:32:58 -07:00
|
|
|
sha256 = "0z6a9w79s5wiy8cvwcdp5wmgf6702d0wzw95f6176yhp4cwy4cq2";
|
2017-03-26 10:13:09 -07:00
|
|
|
}) + "/radeon-profile";
|
|
|
|
|
2019-09-22 07:11:30 -07:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace radeon-profile.pro \
|
|
|
|
--replace "/usr/" "$out/"
|
2017-03-26 10:13:09 -07:00
|
|
|
'';
|
|
|
|
|
2019-09-22 06:58:42 -07:00
|
|
|
meta = with lib; {
|
2017-03-26 10:13:09 -07:00
|
|
|
description = "Application to read current clocks of AMD Radeon cards";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/marazmista/radeon-profile";
|
2017-03-26 10:13:09 -07:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|