mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-02-26 23:15:15 +08:00
temp
This commit is contained in:
parent
0625c88578
commit
78bbc81277
1 changed files with 10 additions and 10 deletions
20
index.html
20
index.html
|
|
@ -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">"github:NixOS/nixpkgs"</span>;
|
||||
flake-utils<span style="color: #666666">.</span><span style="color: #19177C">url</span> <span style="color: #666666">=</span> <span style="color: #BA2121">"github:numtide/flake-utils"</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">"git+https://codeberg.org/mhwombat/hello-nix"</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">"git+https://codeberg.org/mhwombat/hello-nix"</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">''</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">''</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"> ''</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue