Merge pull request #194008 from newAM/tealdeer
tealdeer: 1.5.0 -> 1.6.0
This commit is contained in:
commit
2bce90d942
@ -2,40 +2,45 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, openssl
|
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "tealdeer";
|
pname = "tealdeer";
|
||||||
version = "1.5.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dbrgn";
|
owner = "dbrgn";
|
||||||
repo = "tealdeer";
|
repo = "tealdeer";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-yF46jCdC4UDswKa/83ZrM9VkZXQqzua2/S7y2bqYa+c=";
|
sha256 = "sha256-c7HYQtNT3e/GRyhS6sVGBw91cIusWmOqQ3i+Gglc/Ks=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-BIMaVeNSdKl2A9613S+wgmb6YmiF5YJU8pTMVQfjDwI=";
|
cargoSha256 = "sha256-CLCY4rKdYX3QZvk18Ty9B3kcC6hXsDTpAFG0S5xusEQ=";
|
||||||
|
|
||||||
buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd tldr \
|
installShellCompletion --cmd tldr \
|
||||||
--bash bash_tealdeer \
|
--bash completion/bash_tealdeer \
|
||||||
--fish fish_tealdeer \
|
--fish completion/fish_tealdeer \
|
||||||
--zsh zsh_tealdeer
|
--zsh completion/zsh_tealdeer
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# disable tests for now since one needs network
|
# Disable tests that require Internet access:
|
||||||
# what is unavailable in sandbox build
|
checkFlags = [
|
||||||
# and i can't disable just this one
|
"--skip test_autoupdate_cache"
|
||||||
doCheck = false;
|
"--skip test_create_cache_directory_path"
|
||||||
|
"--skip test_pager_flag_enable"
|
||||||
|
"--skip test_quiet_cache"
|
||||||
|
"--skip test_quiet_failures"
|
||||||
|
"--skip test_quiet_old_cache"
|
||||||
|
"--skip test_spaces_find_command"
|
||||||
|
"--skip test_update_cache"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A very fast implementation of tldr in Rust";
|
description = "A very fast implementation of tldr in Rust";
|
||||||
|
Loading…
Reference in New Issue
Block a user