sadjow/claude-code-nix

Always up-to-date Nix package for Claude Code with hourly updates from Anthropic's native releases

What it solves

This project provides a Nix package for Claude Code, an AI coding assistant for the terminal. It solves the problem of keeping the tool up-to-date for Nix users, as official Nixpkgs updates can be slow and global npm installations are not declarative, not reproducible, and disappear when switching Node.js versions.

How it works

The repository uses GitHub Actions to check for new Claude Code versions every hour. When a new version is detected, it automatically updates the package, calculates hashes for the native binaries, and caches the result to Cachix for instant installation. It packages the self-contained native binary provided by Anthropic, ensuring it has no runtime dependencies and works across different Node.js environments.

Who it’s for

NixOS and Home Manager users who want a declarative, reproducible installation of Claude Code that stays current with the latest releases without waiting for the main Nixpkgs repository.

Highlights

  • Hourly Updates: Automated checks ensure new versions are available within an hour of release.
  • Native Binary: Bundles a self-contained binary (~180MB) with no external runtime dependencies.
  • Binary Cache: Integration with Cachix allows for fast installation without local compilation.
  • Version Pinning: Supports exact version tags (e.g., v2.1.71) or moving channels for flexible update control.
  • Declarative Config: Fully compatible with NixOS and Home Manager for system-wide or user-specific configuration.

Related

  • Project
  • Project
  • Project
  • Project
  • Project