aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-22 18:15:58 -0300
committerEuAndreh <eu@euandre.org>2023-03-22 18:15:58 -0300
commit7adaf453d4792473433bc6f2cbae37e108dc7d22 (patch)
tree4eab20662bc2b654313c71a659740f31d13d46d3 /src
parentsrc/bin/paku: Fix Guix package names in HTML outputs (diff)
downloadpackage-repository-7adaf453d4792473433bc6f2cbae37e108dc7d22.tar.gz
package-repository-7adaf453d4792473433bc6f2cbae37e108dc7d22.tar.xz
src/bin/paku: Explain how to have a file as overlay for Nix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/paku26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/bin/paku b/src/bin/paku
index 2cbca20..fcaf1ea 100755
--- a/src/bin/paku
+++ b/src/bin/paku
@@ -664,8 +664,32 @@ sub emit_html() {
};</code></pre>
<p>
All the packages live under the
- <code>$overlay_name</code> attribute set.
+ <code>$overlay_name</code> attribute set, like.
+ <code>$overlay_name.$json->{packages}[0]->{name}</code>,
+ so it can be included in the list of packages:
</p>
+ <pre><code> environment.systemPackages = with pkgs; [
+ ...
+ $overlay_name.$json->{packages}[0]->{name}
+ ];</pre></code>
+ <p>
+ To make the overlay available outside the system
+ environment of
+ <code>/etc/nixos/configuration.nix</code>, you need to
+ add this overlay to your
+ <code>~/.config/nixpkgs/overlays/</code> directory,
+ like a
+ <code>~/.config/nixpkgs/overlays/$json->{namespace}.nix</code>
+ file containing:
+ </p>
+ <pre><code>import (fetchTarball {
+ url = "$json->{vcs}->{tarball}";
+ }) { pkgs = import &lt;nixpkgs&gt; {}; }</pre></code>
+ <p>
+ Then you'd be able to launch a shell with a package
+ from this overlay:
+ </p>
+ <pre><code>\$ nix-shell -p $overlay_name.$json->{packages}[0]->{name}</code></pre>
</article>
<article id="homebrew-instructions">
<h2>Homebrew instructions</h2>