Scroll to navigation



guix environment (GNU Guix) - manual page for guix environment (GNU Guix) 1.2.0rc2


guix environment [OPTION]... PACKAGE... [-- COMMAND...]


Build an environment that includes the dependencies of PACKAGE and execute COMMAND or an interactive shell in that environment.

create environment for the package that EXPR evaluates to
create environment for the package that the code within FILE evaluates to
create environment with the manifest from FILE
include all specified packages in the environment instead of only their inputs
unset existing environment variables
preserve environment variables that match REGEXP
display needed environment variable definitions
attempt to build for SYSTEM--e.g., "i686-linux"
make FILE a symlink to the result, and register it as a garbage collector root
run command within an isolated container
allow containers to access the network
link environment profile to ~/.guix-profile within an isolated container
instead of copying the name and home of the current user into an isolated container, use the name USER with home directory /home/USER
do not share current working directory with an isolated container
for containers, share writable host file system according to SPEC
for containers, expose read-only host file system according to SPEC
use the given verbosity LEVEL
use bootstrap binaries to build the environment
prepend DIR to the package module search path
keep build tree of failed builds
keep going when some of the derivations fail
do not build the derivations
fall back to building when the substituter fails
build instead of resorting to pre-built substitutes
fetch substitute from URLS if they are authorized
do not graft packages
do not attempt to offload builds
mark the build as failed after SECONDS of silence
mark the build as failed after SECONDS of activity
build N times in a row to detect non-determinism
allow the use of up to N CPU cores for the build
allow at most N build jobs
produce debugging output at LEVEL
list package transformation options not shown here
display this help and exit
display version information and exit


Report bugs to:
GNU Guix home page: <>
General help using Guix and GNU software: <>


Copyright © 2020 the Guix authors License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


The full documentation for guix environment (GNU Guix) is maintained as a Texinfo manual. If the info and guix environment (GNU Guix) programs are properly installed at your site, the command

info guix

should give you access to the complete manual.