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 }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "teip"; 5 - version = "2.0.0"; 6 7 - src = fetchCrate { 8 - inherit pname version; 9 - sha256 = "sha256-fME+tS8wcC6mk5FjuDJpFWWhIsiXV4kuybSqj9awFUM="; 10 }; 11 12 - cargoSha256 = "sha256-wrfS+OEYF60nOhtrnmk7HKqVuAJQFaiT0GM+3OoZ3Wk="; 13 14 nativeBuildInputs = [ installShellFiles ]; 15 16 nativeCheckInputs = [ perl ]; 17 18 postInstall = '' 19 installManPage man/teip.1 20 - installShellCompletion --zsh completion/zsh/_teip 21 ''; 22 23 meta = with lib; { 24 description = "A tool to bypass a partial range of standard input to any command"; 25 homepage = "https://github.com/greymd/teip"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ figsoda ]; 28 };
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , perl 6 + , stdenv 7 + }: 8 9 rustPlatform.buildRustPackage rec { 10 pname = "teip"; 11 + version = "2.3.0"; 12 13 + src = fetchFromGitHub { 14 + owner = "greymd"; 15 + repo = "teip"; 16 + rev = "v${version}"; 17 + hash = "sha256-09IKAM1ha40CvF5hdQIlUab7EBBFourC70LAagrs5+4="; 18 }; 19 20 + cargoHash = "sha256-cBFczgvLja6upuPnXphG2d9Rf1ZpNAVh16NHAHfXxHg="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 nativeCheckInputs = [ perl ]; 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 + 36 postInstall = '' 37 installManPage man/teip.1 38 + installShellCompletion \ 39 + --bash completion/bash/teip \ 40 + --fish completion/fish/teip.fish \ 41 + --zsh completion/zsh/_teip 42 ''; 43 44 meta = with lib; { 45 description = "A tool to bypass a partial range of standard input to any command"; 46 homepage = "https://github.com/greymd/teip"; 47 + changelog = "https://github.com/greymd/teip/releases/tag/v${version}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ figsoda ]; 50 };