Merge pull request #139969 from trofi/update-ocl-icd

This commit is contained in:
Sandro 2021-10-03 21:40:34 +02:00 committed by GitHub
commit 440132a060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,27 @@
{lib, stdenv, fetchurl, ruby, opencl-headers, addOpenGLRunpath }:
{ lib
, stdenv
, fetchFromGitHub
, ruby
, opencl-headers
, addOpenGLRunpath
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "ocl-icd";
version = "2.2.10";
version = "2.3.1";
src = fetchurl {
url = "https://forge.imag.fr/frs/download.php/810/${pname}-${version}.tar.gz";
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
src = fetchFromGitHub {
owner = "OCL-dev";
repo = "ocl-icd";
rev = "v${version}";
sha256 = "1km2rqc9pw6xxkqp77a22pxfsb5kgw95w9zd15l5jgvyjb6rqqad";
};
nativeBuildInputs = [ ruby ];
nativeBuildInputs = [
autoreconfHook
ruby
];
buildInputs = [ opencl-headers ];
@ -19,7 +31,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "OpenCL ICD Loader for ${opencl-headers.name}";
homepage = "https://forge.imag.fr/projects/ocl-icd/";
homepage = "https://github.com/OCL-dev/ocl-icd";
license = licenses.bsd2;
platforms = platforms.linux;
};