2024-03-14 11:12:50 +08:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2024-03-14 22:47:47 +08:00
|
|
|
stdenv.mkDerivation rec
|
2024-03-14 11:12:50 +08:00
|
|
|
{
|
|
|
|
pname = "aocl";
|
|
|
|
version = "4.2.0";
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = "https://download.amd.com/developer/eula/aocl/aocl-4-2/aocl-linux-aocc-4.2.0.tar.gz";
|
|
|
|
sha256 = "0p4x0zza6y18hjjs1971gyc5kjd2f8nzzynp2jabhl2vxiys2nnj";
|
|
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase =
|
|
|
|
''
|
2024-03-14 22:47:47 +08:00
|
|
|
installDir=$(mktemp -d)
|
|
|
|
bash ./install.sh -t $installDir
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r $installDir/${version}/aocc/lib_LP64 $out/lib
|
2024-03-14 11:12:50 +08:00
|
|
|
'';
|
|
|
|
dontFixup = true;
|
|
|
|
}
|