Files
nixpkgs/pkgs/by-name/te/tealdeer/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "tealdeer";
version = "1.7.2";
src = fetchFromGitHub {
owner = "dbrgn";
repo = "tealdeer";
rev = "v${version}";
hash = "sha256-GZN7WE12f3MEoBfswag0O04UOCmZeYwt5CbYwddmwHs=";
};
cargoHash = "sha256-Zk2L4cq7j9CkSc+cnZRWwhtfWP6y5faiMVGFFNkBwwA=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd tldr \
--bash completion/bash_tealdeer \
--fish completion/fish_tealdeer \
--zsh completion/zsh_tealdeer
'';
# Disable tests that require Internet access:
checkFlags = [
"--skip test_autoupdate_cache"
"--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; {
description = "Very fast implementation of tldr in Rust";
homepage = "https://github.com/dbrgn/tealdeer";
maintainers = with maintainers; [
davidak
newam
mfrw
ryan4yin
];
license = with licenses; [
asl20
mit
];
mainProgram = "tldr";
};
}