* One-click installs.
[?]
Feb 23, 2009, 1:23 PM
Y35C6GHH45ZUEZHHYZU4BQK3GOPJENOY2DZM3TMVUA6AMSPT2I7ACDependencies
- [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
- edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 719
sub nixpkg :Local {my ($self, $c, $buildId) = @_; - edit in src/Hydra/lib/Hydra/Controller/Root.pm at line 724
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
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
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
" StorePath: ${path}y\n" ." 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
" References: @refs\n" . - replacement in src/Hydra/root/product-list.tt at line 8
<li class="product"> - edit in src/Hydra/root/product-list.tt at line 12
<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 caninstall this package and all its dependencies automaticallyby clicking on the link above. This requires that you havethe <tt>application/nix-package</tt> MIME type associatedwith the <tt>nix-install-package</tt> program in your webbrowser. Alternatively, you can install it from thecommand-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”, youshould make sure that you have sufficient access rights tothe 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
Nix build of path <tt>[% product.path %]</tt>Nix closure of path <tt>[% product.path %]</tt> - edit in src/Hydra/root/product-list.tt at line 47
- replacement in src/Hydra/root/product-list.tt at line 50
<p>If you have Nix installed on your machine, this build and allits dependencies can be unpacked into your local Nix store bydoing:</p><p>If you have Nix installed on your machine, this build andall its dependencies can be unpacked into your local Nixstore by doing:</p> - replacement in src/Hydra/root/product-list.tt at line 54
<pre>$ gunzip < [% HTML.escape(build.nixname) %].closure.gz | nix-store --import</pre><pre>$ gunzip < [% HTML.escape(build.nixname) %].closure.gz | nix-store --import</pre> - edit in src/Hydra/root/product-list.tt at line 71
--> - edit in src/Hydra/root/product-list.tt at line 73
</li> - edit in src/Hydra/root/product-list.tt at line 76
- edit in src/Hydra/root/product-list.tt at line 78
<li class="product"> - edit in src/Hydra/root/product-list.tt at line 111
</li> - replacement in src/Hydra/root/product-list.tt at line 114
<li class="product"> - edit in src/Hydra/root/product-list.tt at line 125
</li> - edit in src/Hydra/root/product-list.tt at line 129
<li class="product"> - edit in src/Hydra/root/product-list.tt at line 143
</li> - edit in src/Hydra/root/product-list.tt at line 146
<li class="product"> - edit in src/Hydra/root/product-list.tt at line 149
</li> - replacement in src/Hydra/root/product-list.tt at line 152
</li>