diff --git a/pkgs/development/libraries/ocl-icd/default.nix b/pkgs/development/libraries/ocl-icd/default.nix index b84aa6a146d7..75dd5ecd541f 100644 --- a/pkgs/development/libraries/ocl-icd/default.nix +++ b/pkgs/development/libraries/ocl-icd/default.nix @@ -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; };