xwax: init at version 1.9 (#377421)
[NixPkgs.git] / pkgs / tools / system / clinfo / default.nix
blob48b5d4672b8a1c1dab676e8d70fdada54c8f021d
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   ocl-icd,
6   opencl-headers,
7   OpenCL,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "clinfo";
12   version = "3.0.23.01.25";
14   src = fetchFromGitHub {
15     owner = "Oblomov";
16     repo = "clinfo";
17     rev = version;
18     sha256 = "sha256-1jZP4SnLIHh3vQJLBp+j/eQ1c8XBGFR2hjYxflhpWAU=";
19   };
21   buildInputs =
22     lib.optionals (!stdenv.hostPlatform.isDarwin) [
23       ocl-icd
24       opencl-headers
25     ]
26     ++ lib.optionals stdenv.hostPlatform.isDarwin [
27       OpenCL
28     ];
30   makeFlags = [ "PREFIX=${placeholder "out"}" ];
32   meta = with lib; {
33     description = "Print all known information about all available OpenCL platforms and devices in the system";
34     homepage = "https://github.com/Oblomov/clinfo";
35     license = licenses.cc0;
36     maintainers = with maintainers; [
37       athas
38       r-burns
39     ];
40     platforms = platforms.unix;
41     mainProgram = "clinfo";
42   };