nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 28 lines 620 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6buildGoModule rec { 7 pname = "chatgpt"; 8 version = "1.3.5"; 9 10 src = fetchFromGitHub { 11 owner = "j178"; 12 repo = "chatgpt"; 13 rev = "v${version}"; 14 hash = "sha256-+U5fDG/t1x7F4h+D3rVdgvYICoQDH7dd5GUNOCkXw/Q="; 15 }; 16 17 vendorHash = "sha256-/bL9RRqNlKLqZSaym9y5A+RUDrHpv7GBR6ubZkZMPS4="; 18 19 subPackages = [ "cmd/chatgpt" ]; 20 21 meta = { 22 description = "Interactive CLI for ChatGPT"; 23 homepage = "https://github.com/j178/chatgpt"; 24 license = lib.licenses.mit; 25 mainProgram = "chatgpt"; 26 maintainers = with lib.maintainers; [ Ruixi-rebirth ]; 27 }; 28}