nixpkgs/pkgs/by-name/kh/khronos-ocl-icd-loader/package.nix

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

30 lines
792 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
stdenv.mkDerivation rec {
2024-01-20 07:29:05 +00:00
pname = "opencl-icd-loader";
version = "2024.10.24";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-ICD-Loader";
rev = "v${version}";
hash = "sha256-A+Rd/3LyBoUW2MrRDMOcwsTqTADuNxSQdF1HHgfq3mY=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ opencl-headers ];
2024-01-20 07:29:05 +00:00
cmakeFlags = [
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
];
meta = with lib; {
2022-12-18 00:39:44 +00:00
description = "Official Khronos OpenCL ICD Loader";
mainProgram = "cllayerinfo";
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
license = licenses.asl20;
maintainers = with maintainers; [ davidtwco ];
2024-01-20 07:29:05 +00:00
platforms = platforms.unix;
};
}