mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-05-13 18:51:13 +08:00
temp
This commit is contained in:
parent
9ae6c3f97a
commit
5dd1d42a13
3 changed files with 40 additions and 4 deletions
39
index.html
39
index.html
|
|
@ -213,7 +213,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#_an_old_style_nix_shell_with_access_to_a_flake">10.5. An (old-style) Nix shell with access to a flake</a></li>
|
||||
<li><a href="#_buildruntime_environments">10.5. Build/runtime environments</a></li>
|
||||
<li><a href="#_special_situations">10.6. Special situations</a></li>
|
||||
<li><a href="#_an_old_style_nix_shell_with_access_to_a_flake">10.7. An (old-style) Nix shell with access to a flake</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -4847,7 +4849,8 @@ Hello from your nix package!</pre>
|
|||
<div class="sect4">
|
||||
<h5 id="devshell-impure">If the nix derivation requires <code>nixpkgs</code></h5>
|
||||
<div class="paragraph">
|
||||
<p>We need to write the derivation ourselves, using <code>default.nix</code> as a model.
|
||||
<p>In this case, we need to write the derivation ourselves.
|
||||
We can use <code>default.nix</code> as a model.
|
||||
Line 15 should be replaced with:</p>
|
||||
</div>
|
||||
<div class="listingblock">
|
||||
|
|
@ -4871,7 +4874,35 @@ Line 15 should be replaced with:</p>
|
|||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="_an_old_style_nix_shell_with_access_to_a_flake">10.5. An (old-style) Nix shell with access to a flake</h3>
|
||||
<h3 id="_buildruntime_environments">10.5. Build/runtime environments</h3>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::nixpkg/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::flake/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::haskell-pkg/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::haskell-flake/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::env-var/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::nix-non-flake/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Unresolved directive in recipes/build/main.adoc - include::non-flake/main-generated.adoc[leveloffset=+1]</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="_special_situations">10.6. Special situations</h3>
|
||||
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="_an_old_style_nix_shell_with_access_to_a_flake">10.7. An (old-style) Nix shell with access to a flake</h3>
|
||||
<div class="paragraph">
|
||||
<p>If you are maintaining legacy code,
|
||||
you may need to provide access to a flake in a <code>nix-shell</code>.
|
||||
|
|
@ -4929,7 +4960,7 @@ Hello from your flake!</pre>
|
|||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Last updated 2025-09-13 14:41:08 IST
|
||||
Last updated 2025-09-13 14:52:13 IST
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
[#devshell-nix-non-flake]
|
||||
= Access a non-flake package (not in nixpkgs)
|
||||
|
||||
////
|
||||
|
|
|
|||
|
|
@ -20,4 +20,8 @@ include::shebang/main.adoc[leveloffset=+1]
|
|||
|
||||
include::devshell/main.adoc[leveloffset=+1]
|
||||
|
||||
include::build/main.adoc[leveloffset=+1]
|
||||
|
||||
== Special situations
|
||||
|
||||
include::nix-shell/main-generated.adoc[leveloffset=+1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue