2022-09-30 11:47:45 +00:00
|
|
|
{ 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 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ perl ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|