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

This commit is contained in:
Francesco Gazzetta
2026-03-03 14:37:05 +00:00
committed by GitHub
2 changed files with 68 additions and 0 deletions
@@ -0,0 +1,40 @@
{
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;
};
}
@@ -0,0 +1,28 @@
{
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;
};
}