From 026eb0d2518ca1d2150e7e99e86ab6dcf4128928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 5 Sep 2025 19:18:39 +0200 Subject: [PATCH] opencl-clang: adopt, remove darwin from platforms Darwin was broken for a long time and I do not plan to support it in the future. --- pkgs/by-name/op/opencl-clang/package.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/op/opencl-clang/package.nix b/pkgs/by-name/op/opencl-clang/package.nix index 3b9157221eca..265d1c38d8dc 100644 --- a/pkgs/by-name/op/opencl-clang/package.nix +++ b/pkgs/by-name/op/opencl-clang/package.nix @@ -75,12 +75,6 @@ let # fix not be able to find clang from PATH substituteInPlace cl_headers/CMakeLists.txt \ --replace-fail " NO_DEFAULT_PATH" "" - '' - + lib.optionalString stdenv.hostPlatform.isDarwin '' - # Uses linker flags that are not supported on Darwin. - sed -i -e '/SET_LINUX_EXPORTS_FILE/d' CMakeLists.txt - substituteInPlace CMakeLists.txt \ - --replace-fail '-Wl,--no-undefined' "" ''; }; in @@ -111,13 +105,11 @@ stdenv.mkDerivation { inherit passthru; - meta = with lib; { + meta = { homepage = "https://github.com/intel/opencl-clang/"; description = "Clang wrapper library with an OpenCL-oriented API and the ability to compile OpenCL C kernels to SPIR-V modules"; - license = licenses.ncsa; - maintainers = [ ]; - platforms = platforms.all; - # error: invalid value 'CL3.0' in '-cl-std=CL3.0' - broken = stdenv.hostPlatform.isDarwin; + license = lib.licenses.ncsa; + maintainers = [ lib.maintainers.SuperSandro2000 ]; + platforms = lib.platforms.linux; }; }