diff options
author | Haseeb Majid | 2023-05-28 14:01:39 +0100 |
---|---|---|
committer | Haseeb Majid | 2023-05-29 18:37:24 +0100 |
commit | 44ac2336097f9ea59d2acdfbe0daa37e042b5b46 (patch) | |
tree | 25959ea156c0bfe77f28bd2a0368b0f323fc9c57 | |
parent | 5d1f52cb7a69e9a6a4fe24d8e66d558ff46c252a (diff) |
charasay: init at 2.0.0
Co-authored-by: figsoda <figsoda@pm.me>
-rw-r--r-- | pkgs/tools/misc/charasay/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/misc/charasay/default.nix b/pkgs/tools/misc/charasay/default.nix new file mode 100644 index 000000000000..3ce3073ecd74 --- /dev/null +++ b/pkgs/tools/misc/charasay/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 12d50486e9f6..4537c67fada3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -40624,4 +40624,6 @@ with pkgs; isolate = callPackage ../tools/security/isolate { }; reindeer = callPackage ../development/tools/reindeer { }; + + charasay = callPackage ../tools/misc/charasay { }; } |