diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tcllib')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/tcllib/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tcllib/default.nix b/nixpkgs/pkgs/development/libraries/tcllib/default.nix new file mode 100644 index 000000000000..a5bfba8b0559 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/tcllib/default.nix @@ -0,0 +1,28 @@ +{ lib +, fetchzip +, tcl +, critcl +, withCritcl ? true +}: + +tcl.mkTclDerivation rec { + pname = "tcllib"; + version = "1.21"; + + src = fetchzip { + url = "mirror://sourceforge/tcllib/tcllib-${version}.tar.gz"; + hash = "sha256-p8thpRpC+9k/LvbBFaSOIpDXuhMlEWhs0qbrjtKcTzQ="; + }; + + nativeBuildInputs = lib.optional withCritcl critcl; + + buildFlags = [ "all" ] ++ lib.optional withCritcl "critcl"; + + meta = { + homepage = "https://core.tcl-lang.org/tcllib/"; + description = "Tcl-only library of standard routines for Tcl"; + license = lib.licenses.tcltk; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ fgaz ]; + }; +} |