summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-11-08 17:44:04 -0800
committerRyan Burns <rtburns@protonmail.com>2021-11-08 17:44:04 -0800
commitc10a07551721f713392d777c27ac802c99e697bd (patch)
tree201b8fe5cbad685ff551713636224d5145b16af3 /pkgs/tools/system
parentdb6044d5debaff0749420c3553d1b89fc6c5c5f8 (diff)
clinfo: enable on darwin
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/clinfo/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/system/clinfo/default.nix b/pkgs/tools/system/clinfo/default.nix
index 9c5b54f554bd..a9e7c0c81def 100644
--- a/pkgs/tools/system/clinfo/default.nix
+++ b/pkgs/tools/system/clinfo/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
+{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers, OpenCL }:
stdenv.mkDerivation rec {
pname = "clinfo";
@@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
};
- buildInputs = [ ocl-icd opencl-headers ];
-
- NIX_CFLAGS_COMPILE = [
- "-Wno-error=stringop-overflow"
- "-Wno-error=stringop-truncation"
+ buildInputs = lib.optionals (!stdenv.isDarwin) [
+ ocl-icd
+ opencl-headers
+ ] ++ lib.optionals stdenv.isDarwin [
+ OpenCL
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
description = "Print all known information about all available OpenCL platforms and devices in the system";
homepage = "https://github.com/Oblomov/clinfo";
license = licenses.cc0;
- maintainers = with maintainers; [ athas ];
- platforms = platforms.linux;
+ maintainers = with maintainers; [ athas r-burns ];
+ platforms = platforms.unix;
};
}