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

31 lines
799 B
Nix
Raw Normal View History

2017-11-05 14:34:48 +01:00
{ stdenv, fetchFromGitHub, qtbase, qtcharts, qmake, libXrandr, libdrm }:
2017-03-26 19:13:09 +02:00
stdenv.mkDerivation rec {
name = "radeon-profile-${version}";
2017-11-05 14:34:48 +01:00
version = "20170714";
2017-03-26 19:13:09 +02:00
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ qmake ];
2017-11-05 14:34:48 +01:00
buildInputs = [ qtbase qtcharts libXrandr libdrm ];
2017-03-26 19:13:09 +02:00
src = (fetchFromGitHub {
owner = "marazmista";
repo = "radeon-profile";
rev = version;
2017-11-05 14:34:48 +01:00
sha256 = "08fv824iq00zbl9xk9zsfs8gkk8rsy6jlxbmszrjfx7ji28hansd";
2017-03-26 19:13:09 +02: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;
};
}