diff --git a/packages/zeroclaw/default.nix b/packages/zeroclaw/default.nix new file mode 100644 index 0000000..2187d50 --- /dev/null +++ b/packages/zeroclaw/default.nix @@ -0,0 +1,34 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + sqlite, + ... +}: +rustPlatform.buildRustPackage rec { + pname = "zeroclaw"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "zeroclaw-labs"; + repo = "zeroclaw"; + rev = "v${version}"; + hash = "sha256-p8YJOzYL8aMeu7AaZEz3PWUJwh7epufKAHjJKetaGOU="; + }; + + cargoHash = "sha256-J7yAXEDFYL3banQNe/b8PzRpdRu67jU2W37nSf9Y7RY="; + + doCheck = false; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl sqlite ]; + + meta = with lib; { + description = "Lightweight autonomous AI assistant infrastructure built in Rust"; + homepage = "https://github.com/zeroclaw-labs/zeroclaw"; + license = licenses.mit; + mainProgram = "zeroclaw"; + }; +}