charasay: init at 2.0.0
Co-authored-by: figsoda <figsoda@pm.me>
This commit is contained in:
parent
5d1f52cb7a
commit
44ac233609
39
pkgs/tools/misc/charasay/default.nix
Normal file
39
pkgs/tools/misc/charasay/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "charasay";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "latipun7";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-99lMXgSHgxKc0GHnRRciMoZ+rQJyMAx+27fj6NkXxds=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-0la16XinseOXPH2mvdYD7ZquvF2dju4UPBwl5VrTEZA=";
|
||||||
|
|
||||||
|
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 = "The future of cowsay - Colorful characters saying something";
|
||||||
|
homepage = "https://github.com/latipun7/charasay";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ hmajid2301 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -40624,4 +40624,6 @@ with pkgs;
|
||||||
isolate = callPackage ../tools/security/isolate { };
|
isolate = callPackage ../tools/security/isolate { };
|
||||||
|
|
||||||
reindeer = callPackage ../development/tools/reindeer { };
|
reindeer = callPackage ../development/tools/reindeer { };
|
||||||
|
|
||||||
|
charasay = callPackage ../tools/misc/charasay { };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue