mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
21 lines
530 B
Nix
21 lines
530 B
Nix
{ lib, stdenv, rocm-opencl-runtime }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocm-opencl-icd";
|
|
version = rocm-opencl-runtime.version;
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/etc/OpenCL/vendors
|
|
echo "${rocm-opencl-runtime}/lib/libamdocl64.so" > $out/etc/OpenCL/vendors/amdocl64.icd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ danieldk ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|