2008-11-27 20:33:17 +00:00
|
|
|
|
[% USE mibs=format("%.2f") %]
|
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% BLOCK renderProductList -%]
|
|
|
|
|
|
|
|
|
|
<ul class="productList">
|
|
|
|
|
|
|
|
|
|
[% FOREACH product IN build.buildproducts -%]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% SWITCH product.type %]
|
|
|
|
|
|
|
|
|
|
[% CASE "nix-build" %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
|
2009-02-23 09:34:29 +00:00
|
|
|
|
<a href="[% c.uri_for('/closure' build.id) %]">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<img src="/static/images/nix-build.png" alt="Source" />
|
2009-02-23 13:23:55 +00:00
|
|
|
|
Nix closure of path <tt>[% product.path %]</tt>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
</a>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">help</a>]
|
|
|
|
|
<div class="help productDetails">
|
2009-02-23 13:23:55 +00:00
|
|
|
|
<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>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
2009-02-23 13:23:55 +00:00
|
|
|
|
<pre>$ gunzip < [% HTML.escape(build.nixname) %].closure.gz | nix-store --import</pre>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
or to download and unpack in one command:
|
|
|
|
|
|
2009-02-23 09:34:29 +00:00
|
|
|
|
<pre>$ curl [% c.uri_for('/closure' build.id) %] | gunzip | nix-store --import</pre>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
<p>The package can then be found in the path <tt>[%
|
2008-11-28 14:36:04 +00:00
|
|
|
|
product.path %]</tt>. You’ll probably also want to do
|
|
|
|
|
|
2008-11-29 00:56:40 +00:00
|
|
|
|
<pre>$ nix-env -i [% product.path %]</pre>
|
2008-11-28 14:36:04 +00:00
|
|
|
|
|
|
|
|
|
to actually install the package in your Nix user environment.</p>
|
|
|
|
|
|
|
|
|
|
<p>If you get the error message “imported
|
2008-11-27 18:27:19 +00:00
|
|
|
|
archive lacks a signature”, 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>
|
|
|
|
|
|
2009-02-23 13:23:55 +00:00
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE "file" %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
|
|
|
|
<li class="product">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<a href="[% c.uri_for('/download' build.id product.productnr product.name) %]">
|
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "source-dist" %]
|
|
|
|
|
<img src="/static/images/source-dist.png" alt="Source" /> Source distribution <tt>[% product.name %]</tt>
|
|
|
|
|
[% CASE "rpm" %]
|
|
|
|
|
<img src="/static/images/rpm.png" alt="RPM" /> RPM package <tt>[% product.name %]</tt>
|
|
|
|
|
[% CASE "deb" %]
|
|
|
|
|
<img src="/static/images/debian.png" alt="RPM" /> Debian package <tt>[% product.name %]</tt>
|
2008-12-17 15:59:28 +00:00
|
|
|
|
[% CASE "iso" %]
|
|
|
|
|
<img src="/static/images/iso.png" alt="ISO" /> ISO-9660 CD/DVD image <tt>[% product.name %]</tt>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">details</a>]
|
|
|
|
|
<div class="productDetails">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>URL:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="[% c.uri_for('/download' build.id product.productnr product.name) %]">
|
|
|
|
|
<tt>[% c.uri_for('/download' build.id product.productnr product.name) %]</tt>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr><th>File size:</th><td>[% product.filesize %] bytes ([% mibs(product.filesize / (1024 * 1024)) %] MiB)</td></tr>
|
2008-11-27 20:33:17 +00:00
|
|
|
|
<tr><th>SHA-1 hash:</th><td><tt>[% product.sha1hash %]</tt></td></tr>
|
|
|
|
|
<tr><th>SHA-256 hash:</th><td><tt>[% product.sha256hash %]</tt></td></tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<tr><th>Full path:</th><td><tt>[% product.path %]</tt></td></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
</li>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% CASE "report" %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
|
|
|
|
<li class="product">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<a href="[% c.uri_for('/download' build.id product.productnr product.name) %]">
|
|
|
|
|
<img src="/static/images/report.png" alt="Report" />
|
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "coverage" %]
|
|
|
|
|
Code coverage analysis report
|
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
Report of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
</li>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% CASE "doc" %]
|
|
|
|
|
|
2009-02-23 13:23:55 +00:00
|
|
|
|
<li class="product">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<a href="[% c.uri_for('/download' build.id product.productnr product.name) %]">
|
|
|
|
|
<img src="/static/images/document.png" alt="Document" />
|
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "readme" %]
|
|
|
|
|
“README” file
|
|
|
|
|
[% CASE "manual" %]
|
|
|
|
|
Manual
|
2008-11-29 00:56:40 +00:00
|
|
|
|
[% CASE "release-notes" %]
|
|
|
|
|
Release notes
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
Documentation of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
</li>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% CASE DEFAULT %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
|
|
|
|
<li class="product">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
Something of type <tt>[% product.type %]</tt>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
</li>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% END -%]
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$('.productDetailsToggle').toggle(
|
|
|
|
|
function () { $(".productDetails", $(this).parents(".product")).fadeIn(); },
|
|
|
|
|
function () { $(".productDetails", $(this).parents(".product")).hide(); }
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|