3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/radeon-profile/default.nix

31 lines
799 B
Nix
Raw Normal View History

2017-11-05 13:34:48 +00:00
{ stdenv, fetchFromGitHub, qtbase, qtcharts, qmake, libXrandr, libdrm }:
2017-03-26 18:13:09 +01:00
stdenv.mkDerivation rec {
name = "radeon-profile-${version}";
2017-11-05 13:34:48 +00:00
version = "20170714";
2017-03-26 18:13:09 +01:00
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ qmake ];
2017-11-05 13:34:48 +00:00
buildInputs = [ qtbase qtcharts libXrandr libdrm ];
2017-03-26 18:13:09 +01:00
src = (fetchFromGitHub {
owner = "marazmista";
repo = "radeon-profile";
rev = version;
2017-11-05 13:34:48 +00:00
sha256 = "08fv824iq00zbl9xk9zsfs8gkk8rsy6jlxbmszrjfx7ji28hansd";
2017-03-26 18:13:09 +01:00
}) + "/radeon-profile";
postInstall = ''
mkdir -p $out/bin
cp ./radeon-profile $out/bin/radeon-profile
'';
meta = with stdenv.lib; {
description = "Application to read current clocks of AMD Radeon cards";
homepage = https://github.com/marazmista/radeon-profile;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}