depot/third_party/nixpkgs/pkgs/development/libraries/khronos-ocl-icd-loader/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

28 lines
759 B
Nix

{ lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
stdenv.mkDerivation rec {
pname = "opencl-icd-loader";
version = "2023.12.14";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-ICD-Loader";
rev = "v${version}";
hash = "sha256-/4ixQAwJpygdg+qtR1ccBlz8hmtYYxRgUV5dlJabsg8=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ opencl-headers ];
cmakeFlags = [
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
];
meta = with lib; {
description = "Official Khronos OpenCL ICD Loader";
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
license = licenses.asl20;
maintainers = with maintainers; [ davidtwco ];
platforms = platforms.unix;
};
}