help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Guix Environment Best Practices: Shell Hooks, Creating directories, and


From: jgart
Subject: Guix Environment Best Practices: Shell Hooks, Creating directories, and More
Date: Wed, 20 Jan 2021 00:10:28 +0000

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

[Prev in Thread] Current Thread [Next in Thread]