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.

Reply via email to