diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-13 11:30:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 11:30:53 +0200 |
commit | 623799dd13c8b10e16504a9102014a1ad2c1b6ab (patch) | |
tree | 76f234220085a58a7d669c548f316114f2b97996 /pkgs/tools/text/teip | |
parent | 43e8d0718ec25f3796517e6c048b98a5ab6adb61 (diff) | |
parent | 2627f7d4467c3eb74da3dfb156dc5504d47eec48 (diff) |
Merge pull request #220875 from figsoda/teip
teip: 2.0.0 -> 2.3.0
Diffstat (limited to 'pkgs/tools/text/teip')
-rw-r--r-- | pkgs/tools/text/teip/default.nix | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/pkgs/tools/text/teip/default.nix b/pkgs/tools/text/teip/default.nix index 14e1914dea8fe..c0ac20a281495 100644 --- a/pkgs/tools/text/teip/default.nix +++ b/pkgs/tools/text/teip/default.nix @@ -1,28 +1,50 @@ -{ lib, rustPlatform, fetchCrate, installShellFiles, perl }: +{ lib +, rustPlatform +, fetchFromGitHub +, installShellFiles +, perl +, stdenv +}: rustPlatform.buildRustPackage rec { pname = "teip"; - version = "2.0.0"; + version = "2.3.0"; - src = fetchCrate { - inherit pname version; - sha256 = "sha256-fME+tS8wcC6mk5FjuDJpFWWhIsiXV4kuybSqj9awFUM="; + src = fetchFromGitHub { + owner = "greymd"; + repo = "teip"; + rev = "v${version}"; + hash = "sha256-09IKAM1ha40CvF5hdQIlUab7EBBFourC70LAagrs5+4="; }; - cargoSha256 = "sha256-wrfS+OEYF60nOhtrnmk7HKqVuAJQFaiT0GM+3OoZ3Wk="; + cargoHash = "sha256-cBFczgvLja6upuPnXphG2d9Rf1ZpNAVh16NHAHfXxHg="; nativeBuildInputs = [ installShellFiles ]; nativeCheckInputs = [ perl ]; + # Cargo.lock is outdated + preConfigure = '' + cargo update --offline + ''; + + # tests are locale sensitive + preCheck = '' + export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"} + ''; + postInstall = '' installManPage man/teip.1 - installShellCompletion --zsh completion/zsh/_teip + installShellCompletion \ + --bash completion/bash/teip \ + --fish completion/fish/teip.fish \ + --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"; + changelog = "https://github.com/greymd/teip/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; }; |