diff options
-rwxr-xr-x | src/bin/paku | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/paku b/src/bin/paku index 1d97f3a..2cbca20 100755 --- a/src/bin/paku +++ b/src/bin/paku @@ -529,6 +529,7 @@ sub emit_html() { EOF for my $pkg (@{$json->{packages}}) { + my $guix_suffix = $pkg->{label} eq 'latest' ? '' : '@' . $pkg->{label} =~ s/-/./gr; my $suffix = $pkg->{label} eq 'latest' ? '' : "-$pkg->{label}"; my $apt_suffix = $suffix =~ s/-/=/r; my $ver = $pkg->{label} eq 'latest' ? $pkg->{label} : $pkg->{version}; @@ -550,11 +551,11 @@ sub emit_html() { to include this channel, you can launch a shell that includes this package: </p> - <pre><code>\$ guix shell $pkg->{name}$suffix</code></pre> + <pre><code>\$ guix shell $pkg->{name}$guix_suffix</code></pre> <p> Alternatively, you can install it imperatively: </p> - <pre><code>\$ guix install $pkg->{name}$suffix</code></pre> + <pre><code>\$ guix install $pkg->{name}$guix_suffix</code></pre> </section> <section> <h2>Debian</h2> |