This commit is contained in:
Amy de Buitléir 2025-09-05 19:36:05 +01:00
parent 0625c88578
commit 78bbc81277

View file

@ -4547,9 +4547,9 @@ However, you can use any of the flake reference styles defined in <a href="#flak
nixpkgs<span style="color: #666666">.</span><span style="color: #19177C">url</span> <span style="color: #666666">=</span> <span style="color: #BA2121">&quot;github:NixOS/nixpkgs&quot;</span>;
flake-utils<span style="color: #666666">.</span><span style="color: #19177C">url</span> <span style="color: #666666">=</span> <span style="color: #BA2121">&quot;github:numtide/flake-utils&quot;</span>;
<span style="background-color: #ffffcc"> <span style="color: #19177C">hello-nix</span> <span style="color: #666666">=</span> {
</span> <span style="color: #19177C">url</span> <span style="color: #666666">=</span> <span style="color: #BA2121">&quot;git+https://codeberg.org/mhwombat/hello-nix&quot;</span>;
<span style="color: #19177C">flake</span> <span style="color: #666666">=</span> <span style="color: #880000">false</span>;
};
</span><span style="background-color: #ffffcc"> <span style="color: #19177C">url</span> <span style="color: #666666">=</span> <span style="color: #BA2121">&quot;git+https://codeberg.org/mhwombat/hello-nix&quot;</span>;
</span><span style="background-color: #ffffcc"> <span style="color: #19177C">flake</span> <span style="color: #666666">=</span> <span style="color: #880000">false</span>;
</span> };
};
<span style="color: #19177C">outputs</span> <span style="color: #666666">=</span> { self, nixpkgs, flake-utils, hello-nix }:
@ -4557,12 +4557,12 @@ However, you can use any of the flake reference styles defined in <a href="#flak
<span style="color: #008000; font-weight: bold">let</span>
<span style="color: #19177C">pkgs</span> <span style="color: #666666">=</span> <span style="color: #008000">import</span> nixpkgs { <span style="color: #008000; font-weight: bold">inherit</span> system; };
<span style="color: #008000; font-weight: bold">in</span>
<span style="background-color: #ffffcc"> {
</span> <span style="color: #19177C">devShells</span> <span style="color: #666666">=</span> <span style="color: #008000; font-weight: bold">rec</span> {
<span style="color: #19177C">default</span> <span style="color: #666666">=</span> pkgs<span style="color: #666666">.</span>mkShell {
<span style="color: #19177C">shellHook</span> <span style="color: #666666">=</span>
<span style="color: #BA2121">&#39;&#39;</span>
<span style="color: #BA2121"> PATH=</span><span style="color: #A45A77; font-weight: bold">${</span>hello-nix<span style="color: #A45A77; font-weight: bold">}</span><span style="color: #BA2121">:$PATH</span>
{
<span style="background-color: #ffffcc"> <span style="color: #19177C">devShells</span> <span style="color: #666666">=</span> <span style="color: #008000; font-weight: bold">rec</span> {
</span><span style="background-color: #ffffcc"> <span style="color: #19177C">default</span> <span style="color: #666666">=</span> pkgs<span style="color: #666666">.</span>mkShell {
</span><span style="background-color: #ffffcc"> <span style="color: #19177C">shellHook</span> <span style="color: #666666">=</span>
</span><span style="background-color: #ffffcc"> <span style="color: #BA2121">&#39;&#39;</span>
</span><span style="color: #BA2121"> PATH=</span><span style="color: #A45A77; font-weight: bold">${</span>hello-nix<span style="color: #A45A77; font-weight: bold">}</span><span style="color: #BA2121">:$PATH</span>
<span style="color: #BA2121"> &#39;&#39;</span>;
};
};
@ -4898,7 +4898,7 @@ mkShell {
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-09-05 19:31:10 IST
Last updated 2025-09-05 19:34:20 IST
</div>
</div>
</body>