Commit a89ed9e7 authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

tclPackages.tcl-opencl: init at 0.8

parent bea8a14b
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{
  lib,
  mkTclDerivation,
  fetchFromGitHub,
  opencl-headers,
  ocl-icd,
  vectcl,
}:

mkTclDerivation rec {
  pname = "tcl-opencl";
  version = "0.8";

  src = fetchFromGitHub {
    owner = "ray2501";
    repo = "tcl-opencl";
    tag = version;
    hash = "sha256-nVqHWP6YbWbOAJsz0+4xYkOW3zWVmwhOI421Ak+8E3Q=";
  };

  buildInputs = [
    ocl-icd
    opencl-headers
  ];

  propagatedBuildInputs = [
    vectcl
  ];

  configureFlags = [
    "--with-vectcl=${vectcl}/lib/vectcl${vectcl.version}"
  ];

  meta = {
    homepage = "https://github.com/ray2501/tcl-opencl";
    description = "Tcl extension for OpenCL";
    maintainers = with lib.maintainers; [ fgaz ];
    license = lib.licenses.mit;
  };
}