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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
829 B
Nix
Raw Normal View History

2021-11-09 01:44:04 +00:00
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers, OpenCL }:
2019-06-08 21:45:42 +00:00
stdenv.mkDerivation rec {
pname = "clinfo";
2023-01-28 03:33:04 +00:00
version = "3.0.23.01.25";
2019-06-08 21:45:42 +00:00
2021-01-06 03:02:40 +00:00
src = fetchFromGitHub {
owner = "Oblomov";
repo = "clinfo";
rev = version;
2023-01-28 03:33:04 +00:00
sha256 = "sha256-1jZP4SnLIHh3vQJLBp+j/eQ1c8XBGFR2hjYxflhpWAU=";
2021-01-06 03:02:40 +00:00
};
2019-06-08 21:45:42 +00:00
2021-11-09 01:44:04 +00:00
buildInputs = lib.optionals (!stdenv.isDarwin) [
ocl-icd
opencl-headers
] ++ lib.optionals stdenv.isDarwin [
OpenCL
2021-01-06 03:02:40 +00:00
];
2019-11-03 11:58:14 +00:00
2019-06-08 21:45:42 +00:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
2019-06-08 21:45:42 +00:00
description = "Print all known information about all available OpenCL platforms and devices in the system";
homepage = "https://github.com/Oblomov/clinfo";
2019-06-08 21:45:42 +00:00
license = licenses.cc0;
2021-11-09 01:44:04 +00:00
maintainers = with maintainers; [ athas r-burns ];
platforms = platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "clinfo";
2019-06-08 21:45:42 +00:00
};
}