doc: cookbook: Fix direnv example.

When replacing `guix environment' with `guix shell',
I forgot to add a `--development' argument.

Follow-up to 9c3a8a380b.

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

Change-Id: I0a0df33b3b547bfc3ada10c4648e593be6608070
This commit is contained in:
Florian Pelz 2024-05-31 23:07:26 +02:00
parent 2e53fa5346
commit 5c4742663b
No known key found for this signature in database
GPG key ID: 300888CB39C63817

View file

@ -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()