mirror of
https://github.com/NixOS/nix-pills
synced 2024-11-13 23:27:11 +00:00
Merge pull request #27 from gfixler/master
A few small fixes to braces and filename placement
This commit is contained in:
commit
c29e90c517
4 changed files with 3 additions and 4 deletions
|
@ -288,7 +288,7 @@
|
|||
Afterwards, we call the function with the empty set. We saw this already
|
||||
in <link linkend="functions-and-imports">the fifth pill</link>. To
|
||||
reiterate: <code>import <nixpkgs> {}</code> is calling two functions,
|
||||
not one. Reading it as <code>(import <nixpkgs> {}</code> makes this
|
||||
not one. Reading it as <code>(import <nixpkgs>) {}</code> makes this
|
||||
clearer.
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<screen xmlns="http://docbook.org/ns/docbook"><prompt>nix-repl> </prompt><userinput>:l <nixpkgs></userinput>
|
||||
<prompt>nix-repl> </prompt><userinput>simple = derivation { name = "simple"; builder = "${bash}/bin/bash"; args = [ ./simple_builder.sh ]; gcc = gcc; coreutils = coreutils; src = ./simple.c; system = builtins.currentSystem;</userinput>
|
||||
<prompt>nix-repl> </prompt><userinput>simple = derivation { name = "simple"; builder = "${bash}/bin/bash"; args = [ ./simple_builder.sh ]; gcc = gcc; coreutils = coreutils; src = ./simple.c; system = builtins.currentSystem; }</userinput>
|
||||
<prompt>nix-repl> </prompt><userinput>:b simple</userinput>
|
||||
<computeroutput>this derivation produced the following outputs:
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
</para>
|
||||
|
||||
<para>
|
||||
Let's create a builder script for GNU hello world:
|
||||
Let's create a builder script for GNU hello world, hello_builder.sh:
|
||||
</para>
|
||||
|
||||
<screen><xi:include href="./08/hello-builder.txt" parse="text" /></screen>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
hello_builder.sh
|
||||
export PATH="$gnutar/bin:$gcc/bin:$gnumake/bin:$coreutils/bin:$gawk/bin:$gzip/bin:$gnugrep/bin:$gnused/bin:$binutils/bin"
|
||||
tar -xzf $src
|
||||
cd hello-2.9
|
||||
|
|
Loading…
Reference in a new issue