diff --git a/pkgs/development/tcl-modules/by-name/ze/zesty/package.nix b/pkgs/development/tcl-modules/by-name/ze/zesty/package.nix new file mode 100644 index 000000000000..05418d6d342c --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/ze/zesty/package.nix @@ -0,0 +1,41 @@ +{ + lib, + mkTclDerivation, + fetchFromGitHub, + tcllib, + nix-update-script, +}: + +mkTclDerivation rec { + pname = "zesty"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "nico-robert"; + repo = "zesty"; + tag = "v${version}"; + hash = "sha256-XJdgS1Lf5B5VjGq2gztc5p3E7TLiibaYfU9f8r1wKOc="; + }; + + propagatedBuildInputs = [ + tcllib + ]; + + installPhase = '' + runHook preInstall + + install -Dm644 -t $out/lib/zesty/ *.tcl + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Tcl library for rich terminal output"; + homepage = "https://github.com/nico-robert/zesty"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fgaz ]; + platforms = lib.platforms.all; + }; +}