smc-manjari: init at 2.200 (#264540)
[NixPkgs.git] / pkgs / tools / misc / radeon-profile / default.nix
blob5b39116a42cfe0ae3b93b6bae6b3d693b018ef4c
2   lib,
3   mkDerivation,
4   fetchFromGitHub,
5   qtbase,
6   qtcharts,
7   qmake,
8   libXrandr,
9   libdrm,
12 mkDerivation rec {
14   pname = "radeon-profile";
15   version = "20200824";
17   nativeBuildInputs = [ qmake ];
18   buildInputs = [
19     qtbase
20     qtcharts
21     libXrandr
22     libdrm
23   ];
25   src =
26     (fetchFromGitHub {
27       owner = "marazmista";
28       repo = "radeon-profile";
29       rev = version;
30       sha256 = "0z6a9w79s5wiy8cvwcdp5wmgf6702d0wzw95f6176yhp4cwy4cq2";
31     })
32     + "/radeon-profile";
34   preConfigure = ''
35     substituteInPlace radeon-profile.pro \
36       --replace "/usr/" "$out/"
37   '';
39   meta = with lib; {
40     description = "Application to read current clocks of AMD Radeon cards";
41     homepage = "https://github.com/marazmista/radeon-profile";
42     license = licenses.gpl2Plus;
43     platforms = platforms.linux;
44     mainProgram = "radeon-profile";
45   };