mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
41 lines
978 B
Nix
41 lines
978 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "charasay";
|
|
version = "3.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "latipun7";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-7z5+7yrx5X5rdBMNj9oWBZ2IX0s88c1SLhgz2IDDEn8=";
|
|
};
|
|
|
|
cargoHash = "sha256-5htNU8l+amh+C8EL1K4UcXzf5Pbhhjd5RhxrucJoj/M=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postPatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd himalaya \
|
|
--bash <($out/bin/chara completion --shell bash) \
|
|
--fish <($out/bin/chara completion --shell fish) \
|
|
--zsh <($out/bin/chara completion --shell zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Future of cowsay - Colorful characters saying something";
|
|
homepage = "https://github.com/latipun7/charasay";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hmajid2301 ];
|
|
mainProgram = "chara";
|
|
};
|
|
}
|