Command line client for Nix binary cache hosting:
Latest commit 0cf1992 Oct 7, 2018

README.md

Binary Cache as a Service - Build Nix packages once and share them for good

https://cachix.org HTTP and CLI interface

Build Status Hackage Cachix

$ cachix --help
cachix.org command interface

Usage: cachix [-h|--host URI] [-c|--config CONFIGPATH] [-v|--verbose] (COMMAND |
              (-V|--version))
  Sign into https://cachix.org to get started.

Available options:
  -h,--help                Show this help text
  -h,--host URI            Host to connect to (default: https://cachix.org)
  -c,--config CONFIGPATH   Cachix configuration
                           file (default: "/home/ielectric/.config/cachix/cachix.dhall")
  -v,--verbose             Verbose mode
  -V,--version             Show cachix version

Available commands:
  authtoken                Configure token for authentication to cachix.org
  create                   Create a new binary cache
  push                     Upload Nix store paths to the binary cache
  use                      Configure nix.conf to enable binary cache during
                           builds

Installation

  1. Install Cachix client using Nix:
    $ nix-env -iA cachix -f https://github.com/NixOS/nixpkgs/tarball/889c72032f8595fcd7542c6032c208f6b8033db6
  1. Login via https://www.cachix.org/api/v1/login to start using the service

Development

Install Cachix from master:

    $ nix-env -if https://github.com/cachix/cachix/tarball/master --substituters https://cachix.cachix.org --trusted-public-keys cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM=

Support