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

31 lines
801 B
Nix
Raw Normal View History

2021-11-09 02:44:04 +01:00
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers, OpenCL }:
2019-06-08 23:45:42 +02:00
stdenv.mkDerivation rec {
pname = "clinfo";
2021-02-23 17:35:16 +01:00
version = "3.0.21.02.21";
2019-06-08 23:45:42 +02:00
2021-01-06 04:02:40 +01:00
src = fetchFromGitHub {
owner = "Oblomov";
repo = "clinfo";
rev = version;
2021-02-23 17:35:16 +01:00
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
2021-01-06 04:02:40 +01:00
};
2019-06-08 23:45:42 +02:00
2021-11-09 02:44:04 +01:00
buildInputs = lib.optionals (!stdenv.isDarwin) [
ocl-icd
opencl-headers
] ++ lib.optionals stdenv.isDarwin [
OpenCL
2021-01-06 04:02:40 +01:00
];
2019-11-03 12:58:14 +01:00
2019-06-08 23:45:42 +02:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
2019-06-08 23:45:42 +02: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 23:45:42 +02:00
license = licenses.cc0;
2021-11-09 02:44:04 +01:00
maintainers = with maintainers; [ athas r-burns ];
platforms = platforms.unix;
2019-06-08 23:45:42 +02:00
};
}