2014-01-22 09:57:43 +00:00
|
|
|
{ requireFile, stdenv, unzip }:
|
2013-06-16 22:36:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-22 09:57:43 +00:00
|
|
|
version = "6.0";
|
2013-06-16 22:36:04 +01:00
|
|
|
name = "amdadl-sdk-${version}";
|
|
|
|
|
2014-01-22 09:57:43 +00:00
|
|
|
src = requireFile {
|
|
|
|
name = "ADL_SDK_6.0.zip";
|
|
|
|
url = http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/;
|
|
|
|
sha256 = "429f4fd1edebb030d6366f4e0a877cf105e4383f7dd2ccf54e5aef8f2e4242c9";
|
2013-06-16 22:36:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
|
2014-01-22 09:57:43 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '/include/a \#include <wchar.h>' include/adl_structures.h || die
|
|
|
|
'';
|
|
|
|
|
2013-06-16 22:36:04 +01:00
|
|
|
buildPhase = ''
|
|
|
|
#Build adlutil
|
|
|
|
cd adlutil
|
|
|
|
gcc main.c -o adlutil -DLINUX -ldl -I ../include/
|
|
|
|
cd ..
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
#Install SDK
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r include "$out/"
|
|
|
|
cp "adlutil/adlutil" "$out/bin/adlutil"
|
|
|
|
|
|
|
|
#Fix modes
|
|
|
|
chmod -R 755 "$out/bin/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "API to access display driver functionality for ATI graphics cards";
|
|
|
|
homepage = http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/;
|
2014-01-31 17:51:10 +00:00
|
|
|
license = licenses.unfree;
|
2013-06-16 22:36:04 +01:00
|
|
|
maintainers = [ maintainers.offline ];
|
2014-01-29 10:53:39 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2013-06-16 22:36:04 +01:00
|
|
|
};
|
|
|
|
}
|