nixpkgs/pkgs/tools/misc/radeon-profile/default.nix

33 lines
795 B
Nix
Raw Normal View History

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