Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / khronos-ocl-icd-loader / default.nix
blob37c007db20b4c28cbb30765a1cd0e1d9b7bf1787
1 { lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
3 stdenv.mkDerivation rec {
4   pname = "khronos-ocl-icd-loader";
5   version = "2022.01.04";
7   src = fetchFromGitHub {
8     owner = "KhronosGroup";
9     repo = "OpenCL-ICD-Loader";
10     rev = "v${version}";
11     sha256 = "sha256-T2tBoN0yv41W+UksFABVjsetdkXlnEFUINfxumGgC04=";
12   };
14   patches = lib.optional withTracing ./tracing.patch;
16   nativeBuildInputs = [ cmake ];
17   buildInputs = [ opencl-headers ];
19   meta = with lib; {
20     description = "Official Khronos OpenCL ICD Loader";
21     homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
22     license = licenses.asl20;
23     platforms = platforms.linux;
24     maintainers = with maintainers; [ davidtwco ];
25   };