From bea8a14b58175f14a0e839e6e1638005dfde3066 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 3 Feb 2025 22:53:00 +0100 Subject: [PATCH 1/2] tclPackages.vectcl: init at 0.3 --- .../tcl-modules/by-name/ve/vectcl/package.nix | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/development/tcl-modules/by-name/ve/vectcl/package.nix diff --git a/pkgs/development/tcl-modules/by-name/ve/vectcl/package.nix b/pkgs/development/tcl-modules/by-name/ve/vectcl/package.nix new file mode 100644 index 000000000000..1c9aabb4db58 --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/ve/vectcl/package.nix @@ -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; + }; +} From a89ed9e7ebe33912c863a0dbc42d80eae79f88c1 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 3 Feb 2025 22:53:46 +0100 Subject: [PATCH 2/2] tclPackages.tcl-opencl: init at 0.8 --- .../by-name/tc/tcl-opencl/package.nix | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/development/tcl-modules/by-name/tc/tcl-opencl/package.nix diff --git a/pkgs/development/tcl-modules/by-name/tc/tcl-opencl/package.nix b/pkgs/development/tcl-modules/by-name/tc/tcl-opencl/package.nix new file mode 100644 index 000000000000..8113529518f7 --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/tc/tcl-opencl/package.nix @@ -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; + }; +}