at v206 50 lines 1.2 kB view raw
1{ requireFile, stdenv, unzip }: 2 3stdenv.mkDerivation rec { 4 version = "6.0"; 5 name = "amdadl-sdk-${version}"; 6 7 src = requireFile { 8 name = "ADL_SDK_6.0.zip"; 9 url = http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/; 10 sha256 = "429f4fd1edebb030d6366f4e0a877cf105e4383f7dd2ccf54e5aef8f2e4242c9"; 11 }; 12 13 buildInputs = [ unzip ]; 14 15 doCheck = false; 16 17 unpackPhase = '' 18 unzip $src 19 ''; 20 21 patchPhase = '' 22 sed -i -e '/include/a \#include <wchar.h>' include/adl_structures.h || die 23 ''; 24 25 buildPhase = '' 26 #Build adlutil 27 cd adlutil 28 gcc main.c -o adlutil -DLINUX -ldl -I ../include/ 29 cd .. 30 ''; 31 32 installPhase = '' 33 #Install SDK 34 mkdir -p $out/bin 35 cp -r include "$out/" 36 cp "adlutil/adlutil" "$out/bin/adlutil" 37 38 #Fix modes 39 chmod -R 755 "$out/bin/" 40 ''; 41 42 meta = with stdenv.lib; { 43 description = "API to access display driver functionality for ATI graphics cards"; 44 homepage = http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/; 45 license = licenses.unfree; 46 maintainers = [ maintainers.offline ]; 47 platforms = stdenv.lib.platforms.linux; 48 hydraPlatforms = []; 49 }; 50}