[% USE mibs=format("%.2f") %] [% BLOCK renderProductList -%] [% # Work around a strange bug: build.buildproducts.size returns 3 when the actual size is 1. nrProducts = 0; FOREACH product IN build.buildproducts; nrProducts = nrProducts + 1; END %] [% FOREACH product IN build.buildproducts -%] [% uri = "${c.uri_for('/build' build.id 'download' product.productnr)}" _ (product.name ? "/" _ product.name : "") _ (product.defaultpath ? "/" _ product.defaultpath : "") %] [% contents = c.uri_for('/build' build.id 'contents' product.productnr) %] [% SWITCH product.type %] [% CASE "nix-build" %] [% IF build.resultInfo.buildstatus == 6 %] [% ELSE %] [% END %] [% CASE "file" %] [% CASE "report" %] [% CASE ["doc", "doc-pdf"] %] [% CASE DEFAULT %] [% END %] [% END -%]
Source Failed build produced output. Click here to inspect the output.
[% uri = c.uri_for('/build' build.id 'nix' 'pkg' "${build.nixname}-${build.system}.nixpkg") %] Source One-click install of Nix package [% build.nixname %] [help, contents]

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 application/nix-package MIME type associated with the nix-install-package program in your web browser. Alternatively, you can install it from the command-line:

$ nix-install-package --non-interactive --url [% uri %]

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 root.

[% filename = "${build.nixname}.closure.gz" %] [% uri = c.uri_for('/build' build.id 'nix' 'closure' filename ) %] Source Nix closure of path [% product.path %] [help]

If you have Nix installed on your machine, this build and all its dependencies can be unpacked into your local Nix store by doing:

$ gunzip < [% filename %] | nix-store --import

or to download and unpack in one command:

$ curl [% uri %] | gunzip | nix-store --import

The package can then be found in the path [% product.path %]. You’ll probably also want to do

$ nix-env -i [% product.path %]

to actually install the package in your Nix user environment.

If you get the error message “imported archive lacks a signature”, you should make sure that you have sufficient access rights to the Nix store, e.g., run the command as root.

[% SWITCH product.subtype %] [% CASE "source-dist" %] Source Source distribution [% product.name %] [% CASE "rpm" %] RPM RPM package [% product.name %] [% CASE "srpm" %] Source RPM Source RPM package [% product.name %] [% CASE "deb" %] RPM Debian package [% product.name %] [% CASE "iso" %] ISO ISO-9660 CD/DVD image [% product.name %] [% CASE DEFAULT %] File [% product.name %] of type [% product.subtype %] [% END %] [details, contents]
[% IF latestRoot %] [% END %]
URL: [% uri %]
Links to latest: [% IF nrProducts > 1 %] [% uri2 = "${c.uri_for(latestRoot.join('/') 'download-by-type' product.type product.subtype)}" %] [% uri2 %]
[% uri2 = "${c.uri_for(latestRoot.join('/') 'download' product.productnr)}" %] [% uri2 %] [% ELSE %] [% uri2 = "${c.uri_for(latestRoot.join('/') 'download')}" %] [% uri2 %] [% END %]
File size:[% product.filesize %] bytes ([% mibs(product.filesize / (1024 * 1024)) %] MiB)
SHA-1 hash:[% product.sha1hash %]
SHA-256 hash:[% product.sha256hash %]
Full path:[% product.path %]
Report [% SWITCH product.subtype %] [% CASE "coverage" %] Code coverage analysis report [% CASE DEFAULT %] Report of type [% product.subtype %] [% END %]
[% IF product.type == "doc-pdf" %] PDF document [% ELSE %] Document [% END %] [% SWITCH product.subtype %] [% CASE "readme" %] Read Me! [% CASE "manual" %] Manual [% CASE "release-notes" %] Release notes [% CASE DEFAULT %] Documentation of type [% product.subtype %] [% END %]
Something of type [% product.type %]
[% END %]