diff --git a/src/root/product-list.tt b/src/root/product-list.tt index 3630b31e..1934d350 100644 --- a/src/root/product-list.tt +++ b/src/root/product-list.tt @@ -20,12 +20,25 @@ [% CASE "nix-build" %] [% IF build.resultInfo.buildstatus == 6 %] + [% filename = "${build.nixname}.closure.gz" %] + [% uri = c.uri_for('/build' build.id 'nix' 'closure' filename ) %] Source Failed build produced output. Click here to inspect the output. + [help] +
+

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

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

The build output can then be found in the path [% product.path %].

+ +

+
@@ -58,46 +71,46 @@ + + + + [% 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.

+
+ + + + [% END %] - - - - [% 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.

-
- - - - [% CASE "file" %]