1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/tools/misc/radeon-profile/default.nix

33 lines
795 B
Nix
Raw Normal View History

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