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 0000000000000..e616a89160c39 --- /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 ]; + }; +})