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