hydra/src/root/channel-contents.tt

74 lines
1.7 KiB
Plaintext
Raw Normal View History

[% WRAPPER layout.tt title="Channel ${channelName}" %]
[% PROCESS common.tt %]
[% USE HTML %]
2009-03-04 15:25:35 +00:00
<p>This page provides a <em>channel</em> for the <a
href="http://nixos.org/">Nix package manager</a>. If you have Nix
installed, you can subscribe to this channel by once executing</p>
2009-03-04 15:25:35 +00:00
<pre>
$ nix-channel --add [% curUri +%]
2009-03-04 15:25:35 +00:00
$ nix-channel --update</pre>
2009-03-04 15:25:35 +00:00
<p>You can then query and install packages in the normal way, e.g.,</p>
<pre>
$ nix-env -qa '*'
$ nix-env -i foo</pre>
<p>You can update to the latest versions of the packages in this channel by executing</p>
<pre>
2013-01-22 13:41:02 +00:00
$ nix-channel --update
2009-03-04 15:25:35 +00:00
$ nix-env -u '*'</pre>
2009-03-04 15:26:32 +00:00
<p>Alternatively, if you have associated the
2009-03-04 15:25:35 +00:00
<tt>application/nix-package</tt> MIME type with the
<tt>nix-install-package</tt> program in your web browser, you can
install the package simply by clicking on the packages below.</p>
<h2>Packages</h2>
<p>This channel contains the following packages.</p>
<table class="table table-condensed table-striped clickable-rows">
2013-01-22 13:41:02 +00:00
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>System</th>
<th>Description</th>
</tr>
</thead>
2013-01-22 13:41:02 +00:00
<tbody>
[% FOREACH pkg IN nixPkgs %]
2013-02-20 14:54:33 +00:00
[% b = pkg.build %]
[% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %]
<tr>
2013-02-20 14:54:33 +00:00
<td><a href="[% c.uri_for('/build' b.id) %]">[% b.id %]</a></td>
<td><a class="row-link" href="[% uri %]"><tt>[% b.get_column('releasename') || b.nixname %]</tt></a></td>
2013-02-20 14:54:33 +00:00
<td><tt>[% b.system %]</tt></td>
<td>
2013-02-20 14:54:33 +00:00
[% IF b.homepage %]
<a [% HTML.attributes(href => b.homepage) %]>[% HTML.escape(b.description) %]</a>
[% ELSE %]
2013-02-20 14:54:33 +00:00
[% HTML.escape(b.description) %]
[% END %]
</td>
</tr>
[% END %]
</tbody>
2013-01-22 13:41:02 +00:00
</table>
[% END %]