Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, ruby 5, opencl-headers 6, addOpenGLRunpath 7, autoreconfHook 8}: 9 10stdenv.mkDerivation rec { 11 pname = "ocl-icd"; 12 version = "2.3.1"; 13 14 src = fetchFromGitHub { 15 owner = "OCL-dev"; 16 repo = "ocl-icd"; 17 rev = "v${version}"; 18 sha256 = "1km2rqc9pw6xxkqp77a22pxfsb5kgw95w9zd15l5jgvyjb6rqqad"; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 ruby 24 ]; 25 26 buildInputs = [ opencl-headers ]; 27 28 configureFlags = [ 29 "--enable-custom-vendordir=/run/opengl-driver/etc/OpenCL/vendors" 30 ]; 31 32 meta = with lib; { 33 description = "OpenCL ICD Loader for ${opencl-headers.name}"; 34 homepage = "https://github.com/OCL-dev/ocl-icd"; 35 license = licenses.bsd2; 36 platforms = platforms.unix; 37 maintainers = with maintainers; [ r-burns ]; 38 }; 39}