nixpkgs/pkgs/tools/system/clinfo/default.nix

31 lines
799 B
Nix
Raw Normal View History

2019-06-08 23:45:42 +02:00
{ stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
stdenv.mkDerivation rec {
pname = "clinfo";
2020-11-22 23:43:37 +01:00
version = "3.0.20.11.20";
2019-06-08 23:45:42 +02:00
2021-01-06 04:02:40 +01:00
src = fetchFromGitHub {
owner = "Oblomov";
repo = "clinfo";
rev = version;
sha256 = "052xfkbmgfpalmhfwn0dj5114x2mzwz29y37qqhhsdpaxsz0y422";
};
2019-06-08 23:45:42 +02:00
buildInputs = [ ocl-icd opencl-headers ];
2021-01-06 04:02:40 +01:00
NIX_CFLAGS_COMPILE = [
"-Wno-error=stringop-overflow"
"-Wno-error=stringop-truncation"
];
2019-11-03 12:58:14 +01:00
2019-06-08 23:45:42 +02:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with stdenv.lib; {
description = "Print all known information about all available OpenCL platforms and devices in the system";
homepage = "https://github.com/Oblomov/clinfo";
2019-06-08 23:45:42 +02:00
license = licenses.cc0;
maintainers = with maintainers; [ athas ];
2021-01-06 04:02:40 +01:00
platforms = platforms.linux;
2019-06-08 23:45:42 +02:00
};
}