33 lines
667 B
Nix
33 lines
667 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, tbb_2021_8
|
|
, zlib
|
|
, autoPatchelfHook
|
|
, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "intel-oclcpuexp";
|
|
version = "2023.15.3.0.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/intel/llvm/releases/download/2023-WW13/oclcpuexp-2023.15.3.0.20_rel.tar.gz";
|
|
sha256 = "sha256:1mib1zm0hf8sgznsbmv9i84g7m17064abgkh50s3rp2fl66j5iwl";
|
|
};
|
|
|
|
buildInputs = [
|
|
tbb_2021_8
|
|
zlib
|
|
autoPatchelfHook
|
|
];
|
|
|
|
doBuild = false;
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
|
install -d -m0755 $out/lib
|
|
cp * $out/lib
|
|
|
|
install -d -m0755 $out/etc/OpenCL/vendors
|
|
echo $out/lib/libintelocl.so > $out/etc/OpenCL/vendors/${pname}.icd
|
|
'';
|
|
}
|