at 18.03-beta 33 lines 820 B view raw
1{ stdenv, fetchurl, pciutils }: 2 3stdenv.mkDerivation { 4 name = "radeontool-1.5"; 5 6 inherit pciutils; 7 8 # Don't know wether it's a good idea to hardcode the lspci path.. 9 # But it will work on nix.. 10 postUnpack = '' 11 cd $sourceRoot 12 sed -i "s%lspci%$pciutils/sbin/lspci%g" radeontool.c 13 cd .. 14 ''; 15 16 src = fetchurl { 17 url = http://fdd.com/software/radeon/radeontool-1.5.tar.gz; 18 sha256 = "0qbkawhhq0y0gqbbql7q04y0v0hims5c4jkjsbc1y03rf9kr10ar"; 19 }; 20 21 installPhase = '' 22 mkdir -p $out/bin 23 chmod +x lightwatch.pl 24 cp radeontool lightwatch.pl $out/bin 25 ''; 26 27 meta = { 28 description = "Control the backlight and external video output of ATI Radeon Mobility graphics cards"; 29 homepage = http://fdd.com/software/radeon/; 30 license = stdenv.lib.licenses.zlib; 31 broken = true; 32 }; 33}