xeals
c92d05b6b8
Required as part of the latest staging-next commit set to Nixpkgs [1].
Note that this breaks builds on all current non-unstable Nixpkgs
branches (but as the repository notes, they are not supported anyway).
[1]: 02924cf951/doc/languages-frameworks/qt.section.md
38 lines
871 B
Nix
38 lines
871 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
|
|
, qtbase
|
|
, qmake
|
|
, wrapQtAppsHook ? null # Temporary backwards compatibility
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "radeon-profile-daemon";
|
|
version = "20190603.g06qxq2h";
|
|
|
|
buildInputs = [ qtbase ];
|
|
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
|
|
|
src = (
|
|
fetchFromGitHub {
|
|
owner = "marazmista";
|
|
repo = "radeon-profile-daemon";
|
|
rev = version;
|
|
sha256 = "06qxq2hv3l9shna8x5d9awbdm9pbwlc6vckcr63kf37rrs8ykk0j";
|
|
}
|
|
) + "/radeon-profile-daemon";
|
|
|
|
preConfigure = ''
|
|
substituteInPlace radeon-profile-daemon.pro \
|
|
--replace "/usr/" "$out/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|