mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2025-12-30 02:05:03 +08:00
temp
This commit is contained in:
parent
90261ea302
commit
c13b83bf36
3 changed files with 10 additions and 8 deletions
|
|
@ -4912,9 +4912,7 @@ We will write</p>
|
|||
<div class="listingblock">
|
||||
<div class="title">hello-again</div>
|
||||
<div class="content">
|
||||
<pre class="pygments highlight nowrap" style="background: #f8f8f8;"><code data-lang="shell"><div class="lineno"><table class="linenotable"><tr><td class="linenos"><div class="linenodiv"><pre><span style="color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px;">1</span>
|
||||
<span style="color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px;">2</span></pre></div></td><td class="code"><div><pre style="line-height: 125%;"><span></span>include::hello-again
|
||||
cat:<span style="color: #bbbbbb"> </span>hello-again:<span style="color: #bbbbbb"> </span>No<span style="color: #bbbbbb"> </span>such<span style="color: #bbbbbb"> </span>file<span style="color: #bbbbbb"> </span>or<span style="color: #bbbbbb"> </span>directory
|
||||
<pre class="pygments highlight nowrap" style="background: #f8f8f8;"><code data-lang="shell"><div class="lineno"><table class="linenotable"><tr><td class="linenos"><div class="linenodiv"><pre><span style="color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px;">1</span></pre></div></td><td class="code"><div><pre style="line-height: 125%;"><span></span>cat:<span style="color: #bbbbbb"> </span>hello-again:<span style="color: #bbbbbb"> </span>No<span style="color: #bbbbbb"> </span>such<span style="color: #bbbbbb"> </span>file<span style="color: #bbbbbb"> </span>or<span style="color: #bbbbbb"> </span>directory
|
||||
</pre></div></td></tr></table></div></code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -5059,7 +5057,7 @@ lines 5-8 and 17 were explained in that section.</p>
|
|||
<div class="literalblock">
|
||||
<div class="content">
|
||||
<pre class="nowrap">$ hello-nix # this will fail
|
||||
bash: line 34: hello-nix: command not found
|
||||
bash: line 33: hello-nix: command not found
|
||||
$ nix develop
|
||||
$ hello-nix
|
||||
Hello from your nix package!</pre>
|
||||
|
|
@ -5155,7 +5153,7 @@ Hello from your flake!</pre>
|
|||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Last updated 2025-09-13 15:06:02 IST
|
||||
Last updated 2025-09-13 15:06:45 IST
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1757768649,
|
||||
"narHash": "sha256-AeQ9Lyb/c/4dC56qwXmOQAMdb5PipyJCy4xunUz1YDs=",
|
||||
"lastModified": 1757771770,
|
||||
"narHash": "sha256-/JghEYWMoO5kV+CQREWs0W+z2g27fHFAkRIP3TQZ5dI=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c65c17ce69b282d7474a89210ea0cc558510d643",
|
||||
"rev": "5f7451255f69dc631d3697f274406e936584d876",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
4
source/recipes/build/nix-non-flake/tempwork/hello-again
Executable file
4
source/recipes/build/nix-non-flake/tempwork/hello-again
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
echo "I'm a flake, but I'm running a command defined in a non-flake package."
|
||||
hello-nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue