Unverified Commit 56fb60f4 authored by Francesco Gazzetta's avatar Francesco Gazzetta Committed by GitHub
Browse files

tclPackages.vectcl,tclPackages.tcl-opencl: init (#379191)

parents 793fc60e a89ed9e7
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;
  };
}
+28 −0
Original line number Diff line number Diff line
{
  lib,
  mkTclDerivation,
  fetchFromGitHub,
}:

mkTclDerivation rec {
  pname = "vectcl";
  version = "0.3";

  src = fetchFromGitHub {
    owner = "auriocus";
    repo = "VecTcl";
    tag = "v${version}";
    hash = "sha256-nPs16Jy6KMEdupWJNhgYqosuW5Dlpb/dxxTrLpRbYf0=";
  };

  makeFlags = [
    "CFLAGS=-Wno-implicit-function-declaration"
  ];

  meta = {
    homepage = "https://auriocus.github.io/VecTcl/";
    description = "Numeric array and linear algebra extension for Tcl";
    maintainers = with lib.maintainers; [ fgaz ];
    license = lib.licenses.tcltk;
  };
}