diff --git a/pkgs/ai-usagebar/default.nix b/pkgs/ai-usagebar/default.nix new file mode 100644 index 0000000..180aa88 --- /dev/null +++ b/pkgs/ai-usagebar/default.nix @@ -0,0 +1,30 @@ +{ + # keep-sorted start + fetchFromGitHub, + lib, + rustPlatform, + # keep-sorted end +}: +rustPlatform.buildRustPackage rec { + pname = "ai-usagebar"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "akitaonrails"; + repo = pname; + rev = "v${version}"; + hash = "sha256-f2AmK35Eds+kka6NQp+Mo6Acz7lnUOPLZxRhh+Sl/bE="; + }; + + cargoHash = "sha256-JSv9NBGMNm3npyDdH8MlTLoNF+xV+SmQSC2SgXpcrxQ="; + + meta = with lib; { + # keep-sorted start + description = "Usage bar for AI coding assistants"; + homepage = "https://github.com/akitaonrails/ai-usagebar"; + license = licenses.mit; + mainProgram = pname; + platforms = platforms.unix; + # keep-sorted end + }; +}