Macos build

This commit is contained in:
bluepython508
2023-11-07 20:28:31 +00:00
parent 092930a24f
commit a0fc306df1
3 changed files with 60 additions and 31 deletions

View File

@@ -1,10 +1,24 @@
{ mkShell, elixir, elixir-ls, inotify-tools, sqlite-interactive }:
mkShell {
packages = [ elixir elixir-ls inotify-tools sqlite-interactive ];
shellHook = ''
mkdir -p .nix-mix
mkdir -p .nix-hex
export MIX_HOME=$PWD/.nix-mix
export HEX_HOME=$PWD/.nix-hex
'';
}
{
lib,
pkgs,
mkShell,
elixir,
elixir-ls,
inotify-tools,
sqlite-interactive,
}:
mkShell {
packages =
[elixir elixir-ls sqlite-interactive]
++ 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
'';
}