Skip to content

Commit

Permalink
feat(packages): nix-init catgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Jan 2, 2024
1 parent 115a621 commit 420b39f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
user.packages = with pkgs; [
tauon
unstable.thunderbird
my.catgpt
my.ticktick
];

Expand Down
28 changes: 28 additions & 0 deletions packages/catgpt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "catgpt";
version = "0.0.1";

src = fetchFromGitHub {
owner = "ibuildthecloud";
repo = "catgpt";
rev = "v${version}";
hash = "sha256-2smt7C8YK2qPuUChmfDhWYYG2poxz/W5qXBgUtJLEIk=";
};

vendorHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";

ldflags = ["-s" "-w"];

meta = with lib; {
description = "Catgpt` is a command-line tool that uses the OpenAI model to generate text based on user input";
homepage = "https://github.com/ibuildthecloud/catgpt";
license = licenses.asl20;
maintainers = with maintainers; [];
mainProgram = "catgpt";
};
}

0 comments on commit 420b39f

Please sign in to comment.