rocm-opencl-runtime: remove clinfo from the output
This commit is contained in:
parent
95e5089607
commit
b88ac0415c
|
@ -60,6 +60,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
dontStrip = true;
|
||||
|
||||
# Remove clinfo, which is already provided through the
|
||||
# `clinfo` package.
|
||||
postInstall = ''
|
||||
rm -rf $out/bin
|
||||
'';
|
||||
|
||||
# Fix the ICD installation path for NixOS
|
||||
postPatch = ''
|
||||
substituteInPlace khronos/icd/loader/linux/icd_linux.c \
|
||||
|
@ -67,10 +73,6 @@ stdenv.mkDerivation rec {
|
|||
echo 'add_dependencies(amdocl64 OpenCL)' >> amdocl/CMakeLists.txt
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
patchelf --set-rpath "$out/lib" $out/bin/clinfo
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OpenCL runtime for AMD GPUs, part of the ROCm stack";
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime";
|
||||
|
|
Loading…
Reference in New Issue