diff --git a/pkgs/by-name/t3/t3/package.nix b/pkgs/by-name/t3/t3/package.nix new file mode 100644 index 000000000000..c1b05db9d3ce --- /dev/null +++ b/pkgs/by-name/t3/t3/package.nix @@ -0,0 +1,38 @@ +{ + fetchFromGitHub, + help2man, + lib, + nix-update-script, + stdenv, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "t3"; + version = "1.0.8"; + + src = fetchFromGitHub { + owner = "flox"; + repo = "t3"; + tag = "v${finalAttrs.version}"; + hash = "sha256-SaSBFqMh6zOty0mnYL4RJxAxbB1LJusKLdMn7Atv+As="; + }; + + makeFlags = [ + "PREFIX=$(out)" + "VERSION=${finalAttrs.version}" + ]; + nativeBuildInputs = [ help2man ]; + doCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Next generation tee with colorized output streams and precise time stamping"; + homepage = "https://github.com/flox/t3"; + changelog = "https://github.com/flox/t3/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ limeytexan ]; + platforms = lib.platforms.unix; + mainProgram = "t3"; + }; +})