Add amdadl-sdk: amd display library sdk, usefull for ati gpu statistics
This commit is contained in:
parent
4817f34f2b
commit
a826c359c2
44
pkgs/development/misc/amdadl-sdk/default.nix
Normal file
44
pkgs/development/misc/amdadl-sdk/default.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{ fetchurl, stdenv, unzip }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "4.0";
|
||||||
|
name = "amdadl-sdk-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_${version}.zip";
|
||||||
|
sha256 = "4265ee2f265b69cc39b61e10f79741c1d799f4edb71dce14a7d88509fbec0efa";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
unzip $src
|
||||||
|
'';
|
||||||
|
|
||||||
|
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/;
|
||||||
|
license = licenses.amdadl;
|
||||||
|
maintainers = [ maintainers.offline ];
|
||||||
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
@ -22,6 +22,12 @@
|
|||||||
url = "http://developer.amd.com/amd-license-agreement/";
|
url = "http://developer.amd.com/amd-license-agreement/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
amdadl = {
|
||||||
|
shortName = "amd-adl";
|
||||||
|
fullName = "amd-adl license";
|
||||||
|
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/licenses/AMD-ADL?revision=1.1";
|
||||||
|
};
|
||||||
|
|
||||||
asl20 = {
|
asl20 = {
|
||||||
shortName = "ASL2.0";
|
shortName = "ASL2.0";
|
||||||
fullName = "Apache Software License 2.0";
|
fullName = "Apache Software License 2.0";
|
||||||
|
@ -3094,6 +3094,8 @@ let
|
|||||||
|
|
||||||
### DEVELOPMENT / MISC
|
### DEVELOPMENT / MISC
|
||||||
|
|
||||||
|
amdadlsdk = callPackage ../development/misc/amdadl-sdk { };
|
||||||
|
|
||||||
amdappsdk26 = callPackage ../development/misc/amdapp-sdk {
|
amdappsdk26 = callPackage ../development/misc/amdapp-sdk {
|
||||||
version = "2.6";
|
version = "2.6";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user