* One-click installs.

[?]
Feb 23, 2009, 1:23 PM
Y35C6GHH45ZUEZHHYZU4BQK3GOPJENOY2DZM3TMVUA6AMSPT2I7AC

Dependencies

  • [2] NYC3LZKH * Generate NAR archives on the fly. Necessary for producing channels
  • [3] UHANDRAR * Closure downloads: don't include the product number; it's not needed.
  • [4] JFZNAYJX * Showing releases.
  • [5] M3WSK4CB
  • [6] VVDQKVNL
  • [7] IWVA2P2Y * Generate manifests on demand. Next step: generate NAR archives on
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 713
    [4.182]
    [2.0]
  • edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 719
    [4.291]
    [2.120]
    sub nixpkg :Local {
    my ($self, $c, $buildId) = @_;
  • edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 724
    [2.121]
    [2.121]
    my $build = getBuild($c, $buildId);
    return error($c, "Build $buildId doesn't exist.") if !defined $build;
  • edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 727
    [2.122]
    [2.122]
    return error($c, "Build $buildId cannot be downloaded as a Nix package.")
    if !$build->buildproducts->find({type => "nix-build"});
    return error($c, "Path " . $build->outpath . " is no longer available.") unless isValidPath($build->outpath);
    $c->stash->{current_view} = 'Hydra::View::NixPkg';
    $c->stash->{build} = $build;
    $c->response->content_type('application/nix-package');
    }
  • edit in src/Hydra/lib/Hydra/View/NixManifest.pm at line 41
    [4.1398]
    [4.1398]
    my $deriver = `nix-store --query --deriver $path`
    or die "cannot query deriver of `$path': $?";
    chomp $deriver;
  • replacement in src/Hydra/lib/Hydra/View/NixManifest.pm at line 48
    [4.1448][2.406:446]()
    " StorePath: ${path}y\n" .
    [4.1448]
    [4.1485]
    " StorePath: $path\n" .
    (scalar @refs > 0 ? " References: @refs\n" : "") .
    ($deriver ne "unknown-deriver" ? " Deriver: $deriver\n" : "") .
  • edit in src/Hydra/lib/Hydra/View/NixManifest.pm at line 52
    [4.1518][4.1518:1556]()
    " References: @refs\n" .
  • replacement in src/Hydra/root/product-list.tt at line 8
    [4.3209][4.3209:3234]()
    <li class="product">
    [4.3209]
    [4.3234]
  • edit in src/Hydra/root/product-list.tt at line 12
    [4.3296]
    [3.433]
    <li class="product">
    <a href="[% c.uri_for('/nixpkg' build.id) %]">
    <img src="/static/images/nix-build.png" alt="Source" />
    One-click install of Nix package <tt>[% build.nixname %]</tt>
    </a>
    [<a class="productDetailsToggle" href="javascript:">help</a>]
    <div class="help productDetails">
    <p>If you have Nix installed on your machine, you can
    install this package and all its dependencies automatically
    by clicking on the link above. This requires that you have
    the <tt>application/nix-package</tt> MIME type associated
    with the <tt>nix-install-package</tt> program in your web
    browser. Alternatively, you can install it from the
    command-line:
    <pre>$ nix-install-package --non-interactive --url [% c.uri_for('/nixpkg' build.id) %]</pre>
    </p>
    <p>If you get an error message “Permission denied”, you
    should make sure that you have sufficient access rights to
    the Nix store, e.g., run the command as <tt>root</tt>.
    </p>
    </div>
    </li>
    <li class="product">
  • replacement in src/Hydra/root/product-list.tt at line 45
    [4.3436][4.3436:3492]()
    Nix build of path <tt>[% product.path %]</tt>
    [4.3436]
    [4.3492]
    Nix closure of path <tt>[% product.path %]</tt>
  • edit in src/Hydra/root/product-list.tt at line 47
    [4.3505]
    [4.3505]
  • replacement in src/Hydra/root/product-list.tt at line 50
    [4.3617][4.3617:3785]()
    <p>If you have Nix installed on your machine, this build and all
    its dependencies can be unpacked into your local Nix store by
    doing:</p>
    [4.3617]
    [4.3785]
    <p>If you have Nix installed on your machine, this build and
    all its dependencies can be unpacked into your local Nix
    store by doing:</p>
  • replacement in src/Hydra/root/product-list.tt at line 54
    [4.3786][4.3786:3883]()
    <pre>$ gunzip < [% HTML.escape(build.nixname) %].closure.gz | nix-store --import</pre>
    [4.3786]
    [4.3883]
    <pre>$ gunzip &lt; [% HTML.escape(build.nixname) %].closure.gz | nix-store --import</pre>
  • edit in src/Hydra/root/product-list.tt at line 71
    [4.4369]
    [4.4369]
    -->
  • edit in src/Hydra/root/product-list.tt at line 73
    [4.4384]
    [4.4384]
    </li>
  • edit in src/Hydra/root/product-list.tt at line 76
    [4.4385]
    [4.4385]
  • edit in src/Hydra/root/product-list.tt at line 78
    [4.4409]
    [4.4409]
    <li class="product">
  • edit in src/Hydra/root/product-list.tt at line 111
    [4.5926]
    [4.5926]
    </li>
  • replacement in src/Hydra/root/product-list.tt at line 114
    [4.5953][4.5953:5954]()
    [4.5953]
    [4.5954]
    <li class="product">
  • edit in src/Hydra/root/product-list.tt at line 125
    [4.6338]
    [4.6338]
    </li>
  • edit in src/Hydra/root/product-list.tt at line 129
    [4.6363]
    [4.6363]
    <li class="product">
  • edit in src/Hydra/root/product-list.tt at line 143
    [4.6793]
    [4.6793]
    </li>
  • edit in src/Hydra/root/product-list.tt at line 146
    [4.6819]
    [4.6819]
    <li class="product">
  • edit in src/Hydra/root/product-list.tt at line 149
    [4.6873]
    [4.6873]
    </li>
  • replacement in src/Hydra/root/product-list.tt at line 152
    [4.6890][4.6890:6900]()
    </li>
    [4.6890]
    [4.6900]