Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 868 B view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 qtbase, 6 qtcharts, 7 qmake, 8 libXrandr, 9 libdrm, 10}: 11 12mkDerivation rec { 13 14 pname = "radeon-profile"; 15 version = "20200824"; 16 17 nativeBuildInputs = [ qmake ]; 18 buildInputs = [ 19 qtbase 20 qtcharts 21 libXrandr 22 libdrm 23 ]; 24 25 src = 26 (fetchFromGitHub { 27 owner = "marazmista"; 28 repo = "radeon-profile"; 29 rev = version; 30 sha256 = "0z6a9w79s5wiy8cvwcdp5wmgf6702d0wzw95f6176yhp4cwy4cq2"; 31 }) 32 + "/radeon-profile"; 33 34 preConfigure = '' 35 substituteInPlace radeon-profile.pro \ 36 --replace "/usr/" "$out/" 37 ''; 38 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 }; 46 47}