opencl-info: drop

Upstream has been abandoned and unmaintained for 11 years.
opencl-clhpp updates are causing build failures which need
vendored patches.
This commit is contained in:
Sergei Zimmerman 2024-06-03 21:48:42 +03:00
parent db4332c1eb
commit 16999590ce
4 changed files with 1 additions and 62 deletions

View File

@ -1,38 +0,0 @@
{ lib, stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }:
stdenv.mkDerivation {
pname = "opencl-info";
version = "unstable-2014-02-21";
src = fetchFromGitHub {
owner = "marchv";
repo = "opencl-info";
rev = "3e53d001a98978feb865650cf0e93b045400c0d7";
sha256 = "114lxgnjg40ivjjszkv4n3f3yq2lbrvywryvbazf20kqmdz7315l";
};
patches = [
# The cl.hpp header was removed from opencl-clhpp. This patch
# updates opencl-info to use the new cp2.hpp header.
#
# Submitted upstream: https://github.com/marchv/opencl-info/pull/2
./opencl-info-clhpp2.diff
];
buildInputs = [ opencl-clhpp ocl-icd ];
NIX_LDFLAGS = "-lOpenCL";
installPhase = ''
install -Dm755 opencl-info $out/bin/opencl-info
'';
meta = with lib; {
description = "Tool to dump OpenCL platform/device information";
homepage = "https://github.com/marchv/opencl-info";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
mainProgram = "opencl-info";
};
}

View File

@ -1,22 +0,0 @@
diff --git a/opencl-info.cpp b/opencl-info.cpp
index a23015d..a6de0c1 100644
--- a/opencl-info.cpp
+++ b/opencl-info.cpp
@@ -7,7 +7,7 @@
#if defined(__APPLE__) || defined(__MACOSX)
# include <OpenCL/cl.hpp>
#else
-# include <CL/cl.hpp>
+# include <CL/cl2.hpp>
#endif
#include <iostream>
@@ -130,7 +130,7 @@ int main() {
PconstEnd;
P(device, CL_DEVICE_LOCAL_MEM_SIZE);
Pbool(device, CL_DEVICE_ERROR_CORRECTION_SUPPORT);
- Pbool(device, CL_DEVICE_HOST_UNIFIED_MEMORY);
+ // Pbool(device, CL_DEVICE_HOST_UNIFIED_MEMORY); /* Deprecated in 2.0 */
P(device, CL_DEVICE_PROFILING_TIMER_RESOLUTION);
Pbool(device, CL_DEVICE_ENDIAN_LITTLE);
Pbool(device, CL_DEVICE_AVAILABLE);

View File

@ -958,6 +958,7 @@ mapAliases ({
openapi-generator-cli-unstable = throw "openapi-generator-cli-unstable was removed as it was not being updated; consider openapi-generator-cli instead"; # Added 2024-01-02
openbangla-keyboard = throw "openbangla-keyboard has been replaced by ibus-engines.openbangla-keyboard and fcitx5-openbangla-keyboard"; # added 2023-10-10
opencascade = throw "'opencascade' has been removed as it is unmaintained; consider opencascade-occt instead'"; # Added 2023-09-18
opencl-info = throw "opencl-info has been removed, as the upstream is unmaintained; consider using 'clinfo' instead"; # Added 2024-06-12
openconnect_head = openconnect_unstable; # Added 2022-03-29
openconnect_gnutls = openconnect; # Added 2022-03-29
openconnect_unstable = throw "openconnect_unstable was removed from nixpkgs as it was not being updated"; # Added 2023-06-01

View File

@ -11241,8 +11241,6 @@ with pkgs;
opencc = callPackage ../tools/text/opencc { };
opencl-info = callPackage ../tools/system/opencl-info { };
opencryptoki = callPackage ../tools/security/opencryptoki { };
opendbx = callPackage ../development/libraries/opendbx { };