Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeRabbit Nix

Nix flake for CodeRabbit CLI - AI-powered code review tool.

Features

  • Declarative installation via Nix flakes
  • Automatic hourly version updates via GitHub Actions
  • Support for x86_64-linux (other platforms need hash updates)

Usage

Run directly

# Run CodeRabbit CLI
nix run github:YOUR_USERNAME/coderabbit-nix

# Or use the short alias
nix run github:YOUR_USERNAME/coderabbit-nix#cr

Add to your flake

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    coderabbit.url = "github:YOUR_USERNAME/coderabbit-nix";
  };

  outputs = { self, nixpkgs, coderabbit, ... }: {
    nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ({ pkgs, ... }: {
          environment.systemPackages = [
            coderabbit.packages.${pkgs.system}.coderabbit
          ];
        })
      ];
    };
  };
}

Use the overlay

{
  inputs.coderabbit.url = "github:YOUR_USERNAME/coderabbit-nix";

  outputs = { self, nixpkgs, coderabbit, ... }: {
    nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ({ pkgs, ... }: {
          nixpkgs.overlays = [ coderabbit.overlays.default ];
          environment.systemPackages = [ pkgs.coderabbit ];
        })
      ];
    };
  };
}

Authentication

After installation, authenticate with CodeRabbit:

coderabbit auth login
# or
cr auth login

Commands

coderabbit --help           # Show help
coderabbit auth login       # Authenticate
coderabbit review           # Start a code review

Development

Manual version update

./scripts/update-version.sh

Build locally

nix build .#coderabbit
./result/bin/coderabbit --help

Auto-Updates

This repository uses GitHub Actions to automatically check for new CodeRabbit versions every hour. When a new version is detected:

  1. A pull request is created with the updated version and hash
  2. The PR is automatically merged if the build succeeds

License

The Nix packaging code in this repository is MIT licensed. CodeRabbit CLI itself is proprietary software - see CodeRabbit's terms.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages