diff options
author | EuAndreh <eu@euandre.org> | 2021-06-24 18:10:37 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-24 18:10:37 -0300 |
commit | 105dd36eb8d26339e44c21d5bd67d698ec4ccf07 (patch) | |
tree | 73bac7ae74b8d23a036549b4d60b74495e595bdc /scripts/paku | |
parent | aux/: Update (diff) | |
download | package-repository-105dd36eb8d26339e44c21d5bd67d698ec4ccf07.tar.gz package-repository-105dd36eb8d26339e44c21d5bd67d698ec4ccf07.tar.xz |
scripts/paku: Stop duplicating OS instructions for every package
Diffstat (limited to '')
-rwxr-xr-x | scripts/paku | 74 |
1 files changed, 41 insertions, 33 deletions
diff --git a/scripts/paku b/scripts/paku index 4f40b4d..a7e7806 100755 --- a/scripts/paku +++ b/scripts/paku @@ -287,25 +287,12 @@ EOF </p> <section> - <h2> - Guix - </h2> + <h2>Guix</h2> <p> - Add this channel to your Add this channel to your <code>~/.config/guix/channels.scm</code>: - </p> - <pre><code>(cons* - (channel - (name 'xyz-euandreh) - (url "git://euandreh.xyz/package-repository") - (branch "main") - (introduction - (make-channel-introduction - "d749e053e6db365069cb9b2ef47a78b06f9e7361" - (openpgp-fingerprint - "5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060")))) - %default-channels)</code></pre> - <p> - Now you can create a new Guix environment that includes this package: + After following the + <a href="#guix-instructions">Guix instructions</a> to include this + channel, now you can create an environment that includes this + package: </p> <pre><code>$ guix environment --ad-hoc $NAME$SUFFIX</code></pre> <p> @@ -313,23 +300,13 @@ EOF </p> <pre><code>$ guix install $NAME$SUFFIX</code></pre> </section> - <section> - <h2> - Nix - </h2> + <h2>Nix</h2> <p> - Add the overlay to your <code>/etc/nixox/configuration.nix</code>: - </p> - <pre></code>nixpkgs = { - overlays = [ - (import (fetchTarball { - url = "https://git.euandreh.xyz/package-repository/snapshot/package-repository-main.tar.gz"; - }) { inherit pkgs; }) - ]; -};</code></pre> - <p> - Now you can create a new Nix shell that includes this package: + After following the + <a href="#nix-instructions">Nix instructions</a> to include this + repository as an overlay, now you can create a new Nix shell that + includes this package: </p> <pre><code>$ nix-shell -p $NAME$SUFFIX</code></pre> <p> @@ -344,6 +321,37 @@ EOF cat <<EOF >> "$HTML_OUT" </ul> + <article id="guix-instructions"> + <h2>Guix instructions</h2> + <p> + Add this channel to your <code>~/.config/guix/channels.scm</code>: + </p> + <pre><code>(cons* + (channel + (name 'xyz-euandreh) + (url "git://euandreh.xyz/package-repository") + (branch "main") + (introduction + (make-channel-introduction + "d749e053e6db365069cb9b2ef47a78b06f9e7361" + (openpgp-fingerprint + "5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060")))) + %default-channels)</code></pre> + </article> + + <article id="nix-instructions"> + <h2>Nix instructions</h2> + <p> + Add the overlay to your <code>/etc/nixox/configuration.nix</code>: + </p> + <pre></code>nixpkgs = { + overlays = [ + (import (fetchTarball { + url = "https://git.euandreh.xyz/package-repository/snapshot/package-repository-main.tar.gz"; + }) { inherit pkgs; }) + ]; +};</code></pre> + </article> </body> </html> EOF |