mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
27 lines
789 B
Nix
27 lines
789 B
Nix
{ stdenv, fetchFromGitHub, opencl-clhpp, cmake, withTracing ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "khronos-ocl-icd-loader-${version}";
|
|
version = "6c03f8b";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-ICD-Loader";
|
|
rev = "6c03f8b58fafd9dd693eaac826749a5cfad515f8";
|
|
sha256 = "00icrlc00dpc87prbd2j1350igi9pbgkz27hc3rf73s5994yn86a";
|
|
};
|
|
|
|
patches = stdenv.lib.lists.optional withTracing ./tracing.patch;
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ opencl-clhpp ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Offical Khronos OpenCL ICD Loader";
|
|
homepage = https://github.com/KhronosGroup/OpenCL-ICD-Loader;
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
};
|
|
}
|