depot/nix/pkgs/intel-oclcpuexp/default.nix

34 lines
667 B
Nix
Raw Normal View History

2023-05-25 23:01:07 +00:00
{ 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
'';
}