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C ON4DDIBZQI34VOYOCVK5EAHYIY6M6JANW7SK4CCJWGIFYK55J2BQC D5QIOJGPKQJIYBUCSC3MFJ3TXLPNZ2XMI37GXMFRVRFWWR2VMTFAC GIUGQKVRMT7BMVF5FKCINDJMTLUG6S5TCKDIPY3U76OS74VP3QSQC 3PNG7NIBQQURUUPRVQXYL342OT7JUUYOMY2JJNP6YDX7SYJDZMYAC CQTN62OHT4DY35E2MJEG7GFTVNEE5KRDMV6ASBQLBHN7BUDK7WHAC NDL67SQT5CLURSU5H27MJ5COTEQNU5ZMVNAMD4V2BA3G6MQT5VSQC BHZXGT2HWAMFNVBUDG7VR5HNA2SUJBUSMWB7EHTECB4QJ5HVYANAC PZL3SZM3U3BYJX2RGYXC6NMBG7WQHFWHSYDYXZ7Q5VZA3EDYVPIQC BIVZGPUTQ2C7X6NJQMVIDDO2OYNO4R3GROGQAWBVNSK2HSZ3REOQC JFZNAYJXKCMXYHGCLTRH7Q6TOFGJ4BT6332GONCWVYRLNMDDG3KAC GPRYAAFPVGMT7TMZILMR22FFUBB436CDM5GYVQJ7GL2H6J7WFH5QC if (!$c->stash->{build}) {$pkgName =~ /-(\d+)\.nixpkg$/ or notFound($c, "Bad package name.");# FIXME: need to handle multiple outputs: channelBuilds is# joined with the build outputs, so find() can return multiple# results.$c->stash->{build} = $c->stash->{channelBuilds}->find({ id => $1 })|| notFound($c, "No such package in this channel.");}gone($c, "Build " . $c->stash->{build}->id . " is no longer available.")if isLocalStore() && any { !isValidPath($_->path) } $c->stash->{build}->buildoutputs->all;$c->stash->{current_view} = 'NixPkg';$c->response->content_type('application/nix-package');}
package Hydra::View::NixPkg;use strict;use base qw/Catalyst::View/;use Hydra::Helper::CatalystUtils;sub process {my ($self, $c) = @_;$c->response->content_type('application/nix-package');my $build = $c->stash->{build};my $channelUri = $c->config->{binary_cache_public_uri} // $c->uri_for('/');# FIXME: add multiple output supportmy $s = "NIXPKG1 http://invalid.org/". " " . $build->nixname . " " . $build->system. " " . $build->drvpath . " " . $build->buildoutputs->find({name => "out"})->path. " " . $channelUri;$c->response->body($s);return 1;}1;
<p>Alternatively, if you have associated the<tt>application/nix-package</tt> MIME type with the<tt>nix-install-package</tt> program in your web browser, you caninstall the package simply by clicking on the packages below.</p>
[% WRAPPER makePopover title="Help" classes="btn-mini" %]<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:</p><pre><span class="shell-prompt">$ </span>nix-install-package --non-interactive --url [% uri %]</pre>
[% WRAPPER makePopover title="Help" classes="btn-mini"%] <p>Yu can install this package using the Nix packagemanager from the command-line:</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>
<pre><span class="shell-prompt">$ </span>nix-env -i [%HTML.escape(product.path)%][% IF binaryCachePublicUri %] --option binary-caches [% HTML.escape(binaryCachePublicUri) %][% END %]</pre>