Infra
This commit is contained in:
24
shell.nix
Normal file
24
shell.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
mkShell,
|
||||
elixir,
|
||||
elixir-ls,
|
||||
inotify-tools,
|
||||
}:
|
||||
mkShell {
|
||||
packages =
|
||||
[elixir elixir-ls]
|
||||
++ lib.lists.optional (pkgs.system == "x86_64-linux") inotify-tools
|
||||
++ lib.lists.optionals (pkgs.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]);
|
||||
shellHook = ''
|
||||
mkdir -p .nix-mix
|
||||
mkdir -p .nix-hex
|
||||
export MIX_HOME=$PWD/.nix-mix
|
||||
export HEX_HOME=$PWD/.nix-hex
|
||||
export AOC_BASE=$PWD
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user