Fix .nixpkg channel uri

[?]
Mar 2, 2016, 2:35 PM
GIUGQKVRMT7BMVF5FKCINDJMTLUG6S5TCKDIPY3U76OS74VP3QSQC

Dependencies

  • [2] PMNWRTGJ Add multiple output support
  • [3] 5Y3XOQBR Include the URL of the binary cache in .nixpkg files
  • [4] CQTN62OH Die tabs die
  • [5] 3PNG7NIB Remove trailing whitespace
  • [6] ON4DDIBZ * Forgot to commit.

Change contents

  • edit in src/lib/Hydra/View/NixPkg.pm at line 13
    [3.211]
    [2.11065]
    my $storeMode = $c->config->{store_mode} // "direct";
    my $channelUri =
    $storeMode eq "direct" ? $c->uri_for('/')
    : $storeMode eq "s3-binary-cache" ?
    ($c->config->{binary_cache_public_uri} // ("https://" . $c->config->{binary_cache_s3_bucket} . ".s3.amazonaws.com/"))
    : die "Not supported.\n";
  • replacement in src/lib/Hydra/View/NixPkg.pm at line 24
    [2.11197][3.4868:4902](),[3.56][3.4868:4902]()
    . " " . $c->uri_for('/');
    [2.11197]
    [3.3116]
    . " " . $channelUri;