summaryrefslogtreecommitdiff
path: root/docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html
diff options
context:
space:
mode:
authorJohn Bargman2026-04-15 08:23:09 +0000
committerJohn Bargman2026-04-15 08:23:09 +0000
commitdb6b79edbfca3ab7049af2492acd567b099559f5 (patch)
treef54df4a8af70b057032e5af882bd6d1e6be87bf2 /docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html
parent4f877207787edd592687f338772d95c9ec2c7038 (diff)
downloadnixtaml-website-main.tar
nixtaml-website-main.tar.gz
nixtaml-website-main.tar.bz2
nixtaml-website-main.tar.lz
nixtaml-website-main.tar.xz
nixtaml-website-main.tar.zst
nixtaml-website-main.zip
agentic ai; is so; fucking cool; omgmain
Diffstat (limited to 'docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html')
-rw-r--r--docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html153
1 files changed, 153 insertions, 0 deletions
diff --git a/docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html b/docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html
new file mode 100644
index 0000000..07bb923
--- /dev/null
+++ b/docs/archive/cookbook_pinning-codeberg-inputs-in-nix.html
@@ -0,0 +1,153 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="generator" content="Docutils 0.22.4: https://docutils.sourceforge.io/">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta content="Nixtamal, Nix, Git, Codeberg, Forgejo, Git forge, input pinning, dependency management" name="keywords">
+ <meta content="How to pin a Codeberg repository with Nixtamal + Nix" name="description">
+ <meta name="author" content="toastal">
+ <meta name="dcterms.date" content="2026-02-28">
+ <link rel="schema.dcterms" href="http://purl.org/dc/terms/">
+ <meta content="" name="robots">
+ <title>
+ Pinning Codeberg Inputs | Nixtamal
+ </title>
+ <meta name="generator" content="soupault">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <meta http-equiv="X-XSS-Protection" content="1;mode=block">
+ <meta http-equiv="X-Content-Type-Options" content="nosniff">
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self';">
+ <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin">
+ <meta name="theme" content="crimson">
+ <link rel="icon" type="image/svg+xml" href="/asset/_hashed/nixtamal/image/nixtamal-logo-gmxzsw8388sf9paq05xws7an4hnl4nx0.svg">
+ <link rel="stylesheet" href="/asset/_hashed/nixtamal/style/font-j47xx20z5d89qpsl95nnbipkg6d25m6y.css">
+ <link rel="stylesheet" href="/asset/_hashed/sugilite256/chroma-light-yfrfnk1zyqm9dc67gaa5y67s0a6x40ji.css">
+ <link rel="stylesheet" href="/asset/_hashed/sugilite256/chroma-dark-s4ssx3zwz2w418zx7pkrqlwqmywgvahl.css" media="(prefers-color-scheme: dark)">
+ <link rel="stylesheet" href="/asset/_hashed/nixtamal/style/main-lmdn1rci18371fnrcqrwga636ip08irz.css">
+ <link rel="author" href="/humans.txt">
+ </head>
+ <body>
+ <div id="DocWrapper" class="DocWrapper">
+ <div class="Banner-wrapper">
+ <header id="Banner" class="Banner">
+ <pre role="none" class="Banner-flair">┏┓╻+╻ ╱┏┳┓┏┓┏┳┓┏┓╻
+┃┃┃┃┗━┓╹┃╹┣┫┃┃┃┣┫┃
+╹┗┛╹╱ ╹ ╹ ╹╹╹ ╹╹╹┗┛</pre>
+ <a href="/" class="SiteLogo" title="Home">
+ <svg viewbox="0 0 79.375 27.099415" class="SiteLogo-image" role="img" aria-labelledby="SiteLogo-desc">
+ <use href="/asset/_hashed/nixtamal/image/nixtamal-logo-gmxzsw8388sf9paq05xws7an4hnl4nx0.svg#logo">
+ <desc id="SiteLogo-desc">
+ Home
+ </desc>
+ </use>
+ </svg>
+ </a>
+ <nav id="Navigation" class="Banner-navigation Navigation Navigation--banner" aria-expanded="true">
+ <a class="Navigation-item" href="/install/">Install</a>
+ <a class="Navigation-item" href="/manpage/">Manpage</a>
+ <a class="Navigation-item" href="/changelog/">Changelog</a>
+ <a class="Navigation-item" href="/roadmap/">Roadmap</a>
+ <a class="Navigation-item" href="/cookbook/">Cookbook</a>
+ <a class="Navigation-item" href="/real-world-showcase/">Real-world showcase</a>
+
+ <a class="Navigation-item" href="/community/">Community</a>
+ <a class="Navigation-item" href="/faqs/"><abbr title="frequently asked questions">FAQs</abbr></a>
+ <a class="Navigation-item" href="/funding/">Funding</a>
+ </nav>
+ </header>
+ <hr class="Banner-separator">
+ </div>
+ <main id="Main" class="Main">
+ <article id="Article" class="Article Stack">
+ <header class="Headline Article-headline">
+ <h1 itemprop="headline" class="title">
+ Pinning Codeberg Inputs
+ </h1>
+ </header>
+ <section itemprop="articleBody" id="Content" class="Content Article-body">
+ <p>
+ <a class="reference external" href="https://codeberg.org/">Codeberg</a> is a <a class="reference external" href="https://forgejo.org">Forgejo</a> (<abbr title="free &amp; open-source software">FOSS</abbr>) <a class="reference external" href="https://git-scm.com">Git</a> forge instance ran by a German non-profit.
+The instance offers <a class="reference external" href="https://docs.codeberg.org/getting-started/what-is-codeberg/">gratis</a> accounts (<a class="reference external" href="https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md">terms apply</a>).
+ </p>
+ <section id="how-to-pin-a-codeberg-repository-with-nix-nixtamal">
+ <h2>
+ How to pin a Codeberg repository with Nix + Nixtamal
+ </h2>
+ <p>
+ Let’s show the way using the <a class="reference external" href="https://codeberg.org/poezio/biboumi"><cite>Biboumi</cite></a> repository.
+When you write this, you will substitute the owner &amp; project slugs.
+In most cases, you will want to prefer fetching the archive (Forgejo supports gzip) over the Git input kind.
+<span class="docutils literal">git <span class="pre">ls-remote</span></span> is preferred by us for being more generic.
+ </p>
+ <p class="rubric">
+ Latest revision
+ </p>
+ <pre class="code kdl literal-block"><span class="c1">// manifest.kdl
+</span><span class="nl">inputs</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> soupault</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> archive</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> url</span><span class="w"> </span><span class="s">"https://codeberg.org/poezio/biboumi/archive/{{fresh-value}}.tar.gz"</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="nl"> fresh-cmd</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> $</span><span class="w"> </span><span class="s">git</span><span class="w"> </span><span class="s">ls-remote</span><span class="w"> </span><span class="s">--branches</span><span class="w"> </span><span class="s">main</span><span class="w"> </span><span class="s">"https://codeberg.org/poezio/biboumi.git"</span><span class="w">
+</span><span class="nl"> |</span><span class="w"> </span><span class="s">cut</span><span class="w"> </span><span class="s">-f1</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="o">}</span></pre>
+ <p class="rubric">
+ Latest stable release tag
+ </p>
+ <pre class="code kdl literal-block"><span class="c1">// manifest.kdl
+</span><span class="nl">inputs</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> soupault</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> archive</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> url</span><span class="w"> </span><span class="s">"https://codeberg.org/poezio/biboumi/archive/{{fresh-value}}.tar.gz"</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="nl"> fresh-cmd</span><span class="w"> </span><span class="o">{</span><span class="nl">
+</span><span class="nl"> $</span><span class="w"> </span><span class="s">git</span><span class="w"> </span><span class="s">ls-remote</span><span class="w"> </span><span class="s">--tags</span><span class="w"> </span><span class="na">--sort=</span><span class="s">v:refname</span><span class="w"> </span><span class="s">"https://codeberg.org/poezio/biboumi.git"</span><span class="w">
+</span><span class="nl"> |</span><span class="w"> </span><span class="s">grep</span><span class="w"> </span><span class="s">-E</span><span class="w"> </span><span class="s">"'refs/tags/([0-9]+</span><span class="se">\\</span><span class="s">.)+[0-9]+$'"</span><span class="w">
+</span><span class="nl"> |</span><span class="w"> </span><span class="s">tail</span><span class="w"> </span><span class="s">-n1</span><span class="w">
+</span><span class="nl"> |</span><span class="w"> </span><span class="s">sed</span><span class="w"> </span><span class="s">"'s|.*refs/tags/||'"</span><span class="w">
+</span><span class="w"> </span><span class="o">}</span><span class="w">
+</span><span class="o">}</span></pre>
+ </section>
+ </section>
+ </article>
+ </main>
+ <footer id="Footer" class="Footer">
+ <p>
+ Site made with <a href="https://nixos.org">Nix</a> (<abbr title="dependency">dep</abbr> management), <a href="https://nickel-lang.org">Nickel</a> (<abbr title="configuration">config</abbr>), <a href="https://soupault.net">Soupault</a> (<abbr title="static site generator">SSG</abbr>), <a href="https://docutils.sourceforge.io">Docutils</a> (<abbr title="reStructuredText">rST</abbr> rendering), <a href="https://mandoc.bsd.lv">mandoc</a> (manpage conversion), &amp; <a href="https://hub.darcs.net/toastal/sugilite256">sugilite256</a> (color scheme).
+ </p>
+ <small class="Footer-copyright">
+ © 2025–2026 <span itemtype="https://schema.org/Person" itemscope=""><a itemprop="url" href="https://toast.al"><span itemprop="name">toastal</span></a></span>.
+ © 2026 Nixtamal contributors.
+ Some rights reserved.
+ Except where otherwise noted, the content on this website is licensed under <abbr title="Creative Commons Attribution Share Alike 4.0 International">CC-BY-SA-4.0</abbr>.
+ Citations must attribute the work’s writer/maker &amp; include a hyperlink to this website (or rather the work itself).
+ Yes, these rules/clauses apply to <abbr title="large language models">LLM</abbr>s &amp; <abbr title="artificial intellegence">AI</abbr> assistants too.
+ </small>
+ <div id="Maker" itemscope="" itemtype="https://schema.org/Person">
+ <link itemprop="url" href="https://toast.al/">
+ <meta itemprop="name" content="toastal">
+ <meta itemprop="foundingDate" content="2025">
+ <link itemprop="logo" href="https://nixtamal.toast.al/asset/_hashed/nixtamal/image/nixtamal-logo-gmxzsw8388sf9paq05xws7an4hnl4nx0.svg">
+ <div itemprop="address" itemscope="" itemtype="https://schema.org/PostalAddress">
+ <meta itemprop="addressCountry" content="TH">
+ </div>
+ <link itemprop="sameAs" href="https://keybase.io/toastal">
+ <link itemprop="sameAs" href="https://liberapay.com/toastal/">
+ <link itemprop="sameAs" href="https://types.pl/@toastal">
+ <link itemprop="sameAs" href="https://hub.darcs.net/toastal">
+ <link itemprop="sameAs" href="https://smeder.ee/~toastal">
+ <link itemprop="sameAs" href="https://nest.pijul.com/toastal">
+ <link itemprop="sameAs" href="https://codeberg.org/toastal/">
+ <link itemprop="sameAs" href="https://git.sr.ht/~toastal/">
+ <link itemprop="sameAs" href="https://gitlab.com/toastal">
+ <link itemprop="sameAs" href="https://github.com/toastal">
+ </div>
+ </footer>
+ </div>
+</body>
+</html>