clinfo: enable on darwin
This commit is contained in:
parent
db6044d5de
commit
c10a075517
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
|
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers, OpenCL }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clinfo";
|
pname = "clinfo";
|
||||||
|
@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
|
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocl-icd opencl-headers ];
|
buildInputs = lib.optionals (!stdenv.isDarwin) [
|
||||||
|
ocl-icd
|
||||||
NIX_CFLAGS_COMPILE = [
|
opencl-headers
|
||||||
"-Wno-error=stringop-overflow"
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
"-Wno-error=stringop-truncation"
|
OpenCL
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
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";
|
description = "Print all known information about all available OpenCL platforms and devices in the system";
|
||||||
homepage = "https://github.com/Oblomov/clinfo";
|
homepage = "https://github.com/Oblomov/clinfo";
|
||||||
license = licenses.cc0;
|
license = licenses.cc0;
|
||||||
maintainers = with maintainers; [ athas ];
|
maintainers = with maintainers; [ athas r-burns ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31915,7 +31915,9 @@ with pkgs;
|
||||||
|
|
||||||
click = callPackage ../applications/networking/cluster/click { };
|
click = callPackage ../applications/networking/cluster/click { };
|
||||||
|
|
||||||
clinfo = callPackage ../tools/system/clinfo { };
|
clinfo = callPackage ../tools/system/clinfo {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) OpenCL;
|
||||||
|
};
|
||||||
|
|
||||||
clpeak = callPackage ../tools/misc/clpeak { };
|
clpeak = callPackage ../tools/misc/clpeak { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue