* Guix Environment Best Practices: Shell Hooks, Creating directories, and More
@ 2021-01-20 0:10 jgart
2021-01-21 12:42 ` Joshua Branson
0 siblings, 1 reply; 2+ messages in thread
From: jgart @ 2021-01-20 0:10 UTC (permalink / raw)
To: help-guix
Hello Guix!
Could someone share an example or advice on how to currently achieve the following nix shell hook with guix environment/manifests/gexps/...:
# define shell startup command
hooks = ''
# this allows mix to work on the local directory
mkdir -p .nix-mix
mkdir -p .nix-hex
export MIX_HOME=$PWD/.nix-mix
export HEX_HOME=$PWD/.nix-hex
export PATH=$MIX_HOME/bin:$PATH
export PATH=$HEX_HOME/bin:$PATH
export LANG=en_US.UTF-8
export ERL_AFLAGS="-kernel shell_history enabled"
'';
in mkShell {
buildInputs = inputs;
shellHook = hooks;
}
Taken from this blog post on using nix shell for developing elixir:
https://ghedam.at/15443/a-nix-shell-for-developing-elixir
Any help is greatly appreciated.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-21 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 0:10 Guix Environment Best Practices: Shell Hooks, Creating directories, and More jgart
2021-01-21 12:42 ` Joshua Branson
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.