summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Pelz <pelzflorian@pelzflorian.de>2024-05-31 23:07:26 +0200
committerFlorian Pelz <pelzflorian@pelzflorian.de>2024-06-03 00:27:11 +0200
commit5c4742663b0db2f8e261ddc833c098219f9964f9 (patch)
tree9938bd1787fc8087f7e1c489ffd65d665dab0804
parent2e53fa5346bf52f6d6d26e035bc905ebd410dabb (diff)
downloadguix-5c4742663b0db2f8e261ddc833c098219f9964f9.tar.gz
doc: cookbook: Fix direnv example.
When replacing `guix environment' with `guix shell',
I forgot to add a `--development' argument.

Follow-up to 9c3a8a380bcfebdb77af61532e7bfec523d7bde8.

* doc/guix-cookbook.texi (Environment management)
[Guix environment via direnv]: Fix example.

Change-Id: I0a0df33b3b547bfc3ada10c4648e593be6608070
-rw-r--r--doc/guix-cookbook.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index dd30483436..b3568cbf06 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -5088,8 +5088,8 @@ use_guix()
     PACKAGES=(help2man guile-sqlite3 guile-gcrypt)
 
     # Thanks <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html>
-    eval "$(guix shell --search-paths --root="$gcroot" --pure guix \
-     $@{PACKAGES[@@]@} $@{PACKAGES_MAINTENANCE[@@]@} "$@@")"
+    eval "$(guix shell --search-paths --root="$gcroot" --pure \
+     --development guix $@{PACKAGES[@@]@} $@{PACKAGES_MAINTENANCE[@@]@} "$@@")"
 
     # Predefine configure flags.
     configure()