From 1a47f0e43a15b638e623d8d921d3a3e6dd978a55 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 26 Sep 2022 15:04:39 -0400 Subject: [PATCH] teip: init at 2.0.0 --- pkgs/tools/text/teip/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/text/teip/default.nix diff --git a/pkgs/tools/text/teip/default.nix b/pkgs/tools/text/teip/default.nix new file mode 100644 index 000000000000..2b069179965f --- /dev/null +++ b/pkgs/tools/text/teip/default.nix @@ -0,0 +1,29 @@ +{ lib, rustPlatform, fetchCrate, installShellFiles, perl }: + +rustPlatform.buildRustPackage rec { + pname = "teip"; + version = "2.0.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-fME+tS8wcC6mk5FjuDJpFWWhIsiXV4kuybSqj9awFUM="; + }; + + cargoSha256 = "sha256-wrfS+OEYF60nOhtrnmk7HKqVuAJQFaiT0GM+3OoZ3Wk="; + + nativeBuildInputs = [ installShellFiles ]; + + checkInputs = [ perl ]; + + postInstall = '' + installManPage man/teip.1 + installShellCompletion --zsh completion/zsh/_teip + ''; + + meta = with lib; { + description = "A tool to bypass a partial range of standard input to any command"; + homepage = "https://github.com/greymd/teip"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b7297191de4..63a314ae8df9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11563,6 +11563,8 @@ with pkgs; teamviewer = libsForQt515.callPackage ../applications/networking/remote/teamviewer { }; + teip = callPackage ../tools/text/teip { }; + telegraf = callPackage ../servers/monitoring/telegraf { }; teleport = callPackage ../servers/teleport {