diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 093755a13e8f..17f73b35a0ee 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10567,6 +10567,12 @@ githubId = 772914; name = "Mikael Voss"; }; + mwdomino = { + email = "matt@dominey.io"; + github = "mwdomino"; + githubId = 46284538; + name = "Matt Dominey"; + }; mwolfe = { email = "corp@m0rg.dev"; github = "m0rg-dev"; diff --git a/pkgs/tools/misc/aichat/default.nix b/pkgs/tools/misc/aichat/default.nix new file mode 100644 index 000000000000..945abf1f23b9 --- /dev/null +++ b/pkgs/tools/misc/aichat/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, darwin +, rustPlatform +, fetchFromGitHub +, pkg-config +}: + +rustPlatform.buildRustPackage rec { + pname = "aichat"; + version = "0.8.0"; + + src = fetchFromGitHub { + owner = "sigoden"; + repo = "aichat"; + rev = "v${version}"; + hash = "sha256-E/QslRDeifFHlHUELv9rYHjfCAB1yXXiXlWOyPNkfps="; + }; + + cargoHash = "sha256-7TTHBeZ68G6k5eHBL1zDGsYiTyx27fBbN7Rl9AiZTng="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreFoundation + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "Chat with gpt-3.5/chatgpt in terminal."; + homepage = "https://github.com/sigoden/aichat"; + license = licenses.mit; + maintainers = with maintainers; [ mwdomino ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 744e76c6a46e..8488dedbc1ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1382,6 +1382,8 @@ with pkgs; ahcpd = callPackage ../tools/networking/ahcpd { }; + aichat = callPackage ../tools/misc/aichat { }; + aide = callPackage ../tools/security/aide { }; aioblescan = with python3Packages; toPythonApplication aioblescan;