From a4ba96e95d8fdcd31a617bedb5795afd260164d4 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Wed, 7 Oct 2026 08:52:15 +0200 Subject: [PATCH] tclPackages.tcl-cmark: init at 1.1 --- .../by-name/tc/tcl-cmark/package.nix | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/development/tcl-modules/by-name/tc/tcl-cmark/package.nix diff --git a/pkgs/development/tcl-modules/by-name/tc/tcl-cmark/package.nix b/pkgs/development/tcl-modules/by-name/tc/tcl-cmark/package.nix new file mode 100644 index 000000000000..e616a89160c3 --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/tc/tcl-cmark/package.nix @@ -0,0 +1,41 @@ +{ + lib, + mkTclDerivation, + fetchFromGitHub, + cmark-gfm, + pkg-config, +}: + +mkTclDerivation (finalAttrs: { + pname = "tcl-cmark"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "apnadkarni"; + repo = "tcl-cmark"; + tag = "v${finalAttrs.version}"; + hash = "sha256-jvtvmbpttQlfLQfhhTpHn6q492DU51k0QJr/8omXhuY="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + cmark-gfm + ]; + + tclRequiresCheck = [ + "cmark" + ]; + + doInstallCheck = true; + installCheckTarget = "test"; + + meta = { + description = "Tcl bindings to the cmark-gfm Github Flavoured CommonMark/Markdown library"; + homepage = "https://github.com/apnadkarni/tcl-cmark"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ fgaz ]; + }; +})