2020-10-15 19:05:13 +11:00
|
|
|
{ stdenv
|
2021-02-01 08:45:20 +11:00
|
|
|
, lib
|
2020-10-15 19:05:13 +11:00
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qmake
|
2021-02-20 21:24:06 +11:00
|
|
|
, wrapQtAppsHook ? null # Temporary backwards compatibility
|
2020-10-15 19:05:13 +11:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "radeon-profile-daemon";
|
2021-01-24 16:37:51 +11:00
|
|
|
version = "20190603.g06qxq2h";
|
2020-10-15 19:05:13 +11:00
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
2021-02-20 21:24:06 +11:00
|
|
|
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
2020-10-15 19:05:13 +11:00
|
|
|
|
|
|
|
src = (
|
|
|
|
fetchFromGitHub {
|
|
|
|
owner = "marazmista";
|
|
|
|
repo = "radeon-profile-daemon";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "06qxq2hv3l9shna8x5d9awbdm9pbwlc6vckcr63kf37rrs8ykk0j";
|
|
|
|
}
|
|
|
|
) + "/radeon-profile-daemon";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace radeon-profile-daemon.pro \
|
|
|
|
--replace "/usr/" "$out/"
|
|
|
|
'';
|
|
|
|
|
2021-02-01 08:45:20 +11:00
|
|
|
meta = with lib; {
|
2020-10-15 19:05:13 +11:00
|
|
|
description = "System daemon for reading current clocks of AMD Radeon cards";
|
|
|
|
homepage = "https://github.com/marazmista/radeon-profile-daemon";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|