A clean, multi-platform Nix Flake for packaging the complete Google Antigravity AI engineering suite: the CLI, Desktop Hub, Desktop IDE, and Python SDK.
This flake packages and exposes five primary targets supporting both Linux (x86_64-linux, aarch64-linux) and macOS (x86_64-darwin, aarch64-darwin):
antigravity-cli(default) - The Go-based Antigravity command-line utility (provides commandagy).antigravity- The Antigravity Desktop Hub (provides commandantigravity).antigravity-ide- The Antigravity Desktop IDE (provides commandantigravity-ide).antigravity-fhs- Wrapped IDE launched in a FHS compatible environment (provides conflicting commandantigravity-ide, making it mutually exclusive/uninstallable together with the standard IDE package).antigravity-sdk- The Python SDK containing precompiled, auto-patched localharness binaries for agent interaction.
You can run any part of the Antigravity suite immediately without modifying your system configuration:
nix run github:Hy4ri/antigravity-flake
# Or explicitly:
nix run github:Hy4ri/antigravity-flake#antigravity-clinix run github:Hy4ri/antigravity-flake#antigravitynix run github:Hy4ri/antigravity-flake#antigravity-ide
# Or run with the FHS wrapper (Linux only):
nix run github:Hy4ri/antigravity-flake#antigravity-fhsAdd antigravity-flake to your flake inputs:
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
antigravity.url = "github:Hy4ri/antigravity-flake";
};Then add the packages to your system or home packages:
environment.systemPackages = [
inputs.antigravity.packages.${pkgs.system}.antigravity-cli
inputs.antigravity.packages.${pkgs.system}.antigravity
inputs.antigravity.packages.${pkgs.system}.antigravity-ide
];If you are developing Python agents, you can easily load the precompiled and auto-patched Python SDK into a nix development shell:
devShells.default = pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (ps: [
inputs.antigravity.packages.${pkgs.system}.antigravity-sdk
]))
];
};To globally inject these packages into your nixpkgs instance, apply the overlay:
nixpkgs.overlays = [
inputs.antigravity.overlays.default
];Proprietary binaries downloaded and packaged under the Google Antigravity License Terms.