NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.1k stars 291 forks source link

Update README #1271

Open ahoneybun opened 1 year ago

ahoneybun commented 1 year ago

This updates the README based on my experience setting up Hydra locally.

ahoneybun commented 1 year ago

Please note that the example/hello.nix does not build:

command `git rev-parse nixos-22.11' failed with exit status 32768 in /var/lib/hydra/scm/git/2d3d69c75e2540382d11cba6a4ed672c4aa6c4cc82c1370ec91087d6b5393c06 at /nix/store/lrvmarjxpvcrcsbr8569m8gkgrzsy23r-hydra-2022-10-22/libexec/hydra/lib/Hydra/Helper/Nix.pm line 460.
ahoneybun commented 1 year ago

I think we should also update somewhere on how to remove old builds and ones that fail, I know this works but it's not ideal:

  1. Remove the gcroots:
rm /nix/var/nix/gcroots/hydra/*
  1. Then remove the garbage:
nix-collect-garbage