mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
doc: cookbook: Add 'use-modules' in gexp example.
* doc/guix-cookbook.texi (A Scheme Crash Course): Add 'use-modules' line in gexp example.
This commit is contained in:
parent
c3f6dd45d7
commit
3c7d465133
1 changed files with 3 additions and 0 deletions
|
@ -280,6 +280,9 @@ they provide code to be executed during the package build process. They
|
||||||
look like this:
|
look like this:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
|
(use-modules (guix gexp) ;so we can write gexps
|
||||||
|
(gnu packages base)) ;for 'coreutils'
|
||||||
|
|
||||||
;; Below is a G-expression representing staged code.
|
;; Below is a G-expression representing staged code.
|
||||||
#~(begin
|
#~(begin
|
||||||
;; Invoke 'ls' from the package defined by the 'coreutils'
|
;; Invoke 'ls' from the package defined by the 'coreutils'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue