# monad-repl -rw-r--r-- 874 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
λ rlwrap guix repl
rlwrap: warning: could not set locale
warnings can be silenced by the --no-warnings (-n) option
GNU Guile 3.0.7
Copyright (C) 1995-2021 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> ,use (guix gexp)
scheme@(guix-user)> ,run-in-store (gexp->derivation "foo" #~(mkdir #$output))
Unknown meta command: run-in-store
$1 = #<procedure 7f5208b6af00 at guix/gexp.scm:1180:2 (state)>
scheme@(guix-user)> ,use (guix monad-repl)
scheme@(guix-user)> ,run-in-store (gexp->derivation "foo" #~(mkdir #$output))
$2 = #<derivation /gnu/store/h6q5sbxlkd6fwdzyhykbm2mx8nj7s10j-foo.drv => /gnu/store/xhmniynncs0g4kv1nsv83an2aqbwaygh-foo 7f51fe1d8690>