Unverified Commit 82b7b690 authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #234029 from hmajid2301/master

charasay: init at 2.0.0
parents 5e871d8a 44ac2336
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6403,6 +6403,15 @@
    githubId = 6074754;
    name = "Hlodver Sigurdsson";
  };
  hmajid2301 = {
    name = "Haseeb Majid";
    email = "hello@haseebmajid.dev";
    github = "hmajid2301";
    githubId = 998807;
    keys = [{
      fingerprint = "A236 785D 59F1 9076 1E9C E8EC 7828 3DB3 D233 E1F9";
    }];
  };
  hmenke = {
    name = "Henri Menke";
    email = "henri@henrimenke.de";
+39 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -40718,4 +40718,6 @@ with pkgs;
  isolate = callPackage ../tools/security/isolate { };
  reindeer = callPackage ../development/tools/reindeer { };
  charasay = callPackage ../tools/misc/charasay { };
}