Provide the nix-cache-info file required by the binary cache substituter

[?]
Jul 30, 2012, 8:26 PM
XE6HD7BPU2TGDFSXCLBQTVBBCJBPCRP7ENRE3RWQRK5SWUMTITPQC

Dependencies

  • [2] XFZ3ASK4 fix missing import of Nix::Store for isValidPath
  • [3] AFEKITYD Fix some warnings about undefined values
  • [4] SZYDW2DG hydra: added some user admin
  • [5] 6KJXJB7N qualify ordery_by clauses when necessary, remove unnecessary order_by's, reported by Ludo, resulted in errors in sqlite
  • [6] MVB7RRLT * Move NARs from the NixChannel controller to the Root controller and
  • [7] IDT3SO3P Generate *.narinfo files on the fly to support the binary cache substituter
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] SMM4HQTP * Put actions related to builds under /build (e.g. /log/<buildid>

Change contents

  • edit in src/lib/Hydra/Controller/Root.pm at line 10
    [2.16]
    [10.0]
    use Nix::Config;
  • edit in src/lib/Hydra/Controller/Root.pm at line 196
    [4.681]
    [4.681]
    }
    sub nix_cache_info :Path('nix-cache-info') :Args(0) {
    my ($self, $c) = @_;
    $c->stash->{'plain'} = { data =>
    #"StoreDir: $Nix::Config::storeDir\n" . # FIXME
    "StoreDir: /nix/store\n" .
    "WantMassQuery: 0\n"
    };
    $c->forward('Hydra::View::Plain');
  • replacement in src/lib/Hydra/Controller/Root.pm at line 227
    [3.265][4.3042:3100](),[4.684][4.3042:3100]()
    sub change_password : Path('change-password') : Args(0) {
    [3.265]
    [4.3100]
    sub change_password : Path('change-password') :Args(0) {