teip: 2.0.0 -> 2.3.0

Diff: https://github.com/greymd/teip/compare/v2.0.0...v2.3.0

Changelog: https://github.com/greymd/teip/releases/tag/v2.3.0

figsoda 2627f7d4 5d6d90c3

+29 -7
+29 -7
pkgs/tools/text/teip/default.nix
··· 1 - { lib, rustPlatform, fetchCrate, installShellFiles, perl }: 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , perl 6 + , stdenv 7 + }: 2 8 3 9 rustPlatform.buildRustPackage rec { 4 10 pname = "teip"; 5 - version = "2.0.0"; 11 + version = "2.3.0"; 6 12 7 - src = fetchCrate { 8 - inherit pname version; 9 - sha256 = "sha256-fME+tS8wcC6mk5FjuDJpFWWhIsiXV4kuybSqj9awFUM="; 13 + src = fetchFromGitHub { 14 + owner = "greymd"; 15 + repo = "teip"; 16 + rev = "v${version}"; 17 + hash = "sha256-09IKAM1ha40CvF5hdQIlUab7EBBFourC70LAagrs5+4="; 10 18 }; 11 19 12 - cargoSha256 = "sha256-wrfS+OEYF60nOhtrnmk7HKqVuAJQFaiT0GM+3OoZ3Wk="; 20 + cargoHash = "sha256-cBFczgvLja6upuPnXphG2d9Rf1ZpNAVh16NHAHfXxHg="; 13 21 14 22 nativeBuildInputs = [ installShellFiles ]; 15 23 16 24 nativeCheckInputs = [ perl ]; 17 25 26 + # Cargo.lock is outdated 27 + preConfigure = '' 28 + cargo update --offline 29 + ''; 30 + 31 + # tests are locale sensitive 32 + preCheck = '' 33 + export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"} 34 + ''; 35 + 18 36 postInstall = '' 19 37 installManPage man/teip.1 20 - installShellCompletion --zsh completion/zsh/_teip 38 + installShellCompletion \ 39 + --bash completion/bash/teip \ 40 + --fish completion/fish/teip.fish \ 41 + --zsh completion/zsh/_teip 21 42 ''; 22 43 23 44 meta = with lib; { 24 45 description = "A tool to bypass a partial range of standard input to any command"; 25 46 homepage = "https://github.com/greymd/teip"; 47 + changelog = "https://github.com/greymd/teip/releases/tag/v${version}"; 26 48 license = licenses.mit; 27 49 maintainers = with maintainers; [ figsoda ]; 28 50 };