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

28 lines
770 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";
version = "2.2.18.04.06";
src = fetchFromGitHub {
owner = "Oblomov";
repo = "clinfo";
2019-09-09 01:38:31 +02:00
rev = version;
2019-06-08 23:45:42 +02:00
sha256 = "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx";
};
buildInputs = [ ocl-icd opencl-headers ];
2019-11-03 12:58:14 +01:00
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
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;
platforms = platforms.linux;
maintainers = with maintainers; [ athas ];
};
}