Skip to content

Commit

Permalink
radeontool: 1.5 -> 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Sep 6, 2019
1 parent b081115 commit 11e6229
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions pkgs/os-specific/linux/radeontools/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
{ stdenv, fetchurl, pciutils }:
{ stdenv, fetchurl
, autoreconfHook
, pciutils
, pkgconfig
, xorg
}:

stdenv.mkDerivation {
name = "radeontool-1.5";

inherit pciutils;

# Don't know wether it's a good idea to hardcode the lspci path..
# But it will work on nix..
postUnpack = ''
cd $sourceRoot
sed -i "s%lspci%$pciutils/sbin/lspci%g" radeontool.c
cd ..
'';
stdenv.mkDerivation rec {
pname = "radeontool";
version = "1.6.3";

src = fetchurl {
url = http://fdd.com/software/radeon/radeontool-1.5.tar.gz;
sha256 = "0qbkawhhq0y0gqbbql7q04y0v0hims5c4jkjsbc1y03rf9kr10ar";
url = "https://people.freedesktop.org/~airlied/radeontool/${pname}-${version}.tar.gz";
sha256 = "0mjk9wr9rsb17yy92j6yi16hfpa6v5r1dbyiy60zp4r125wr63za";
};

installPhase = ''
mkdir -p $out/bin
chmod +x lightwatch.pl
cp radeontool lightwatch.pl $out/bin
'';
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ xorg.libpciaccess ];

meta = {
description = "Control the backlight and external video output of ATI Radeon Mobility graphics cards";
homepage = http://fdd.com/software/radeon/;
license = stdenv.lib.licenses.zlib;
broken = true;
meta = with stdenv.lib; {
description = "Lowlevel tools to tweak register and dump state on radeon GPUs";
homepage = "https://airlied.livejournal.com/";
license = licenses.zlib;
};
}

0 comments on commit 11e6229

Please sign in to comment.