Skip to content

Instantly share code, notes, and snippets.

@chooh
Created January 8, 2023 23:28
Show Gist options
  • Save chooh/ad6d4de73ad3faf7773d62275d82c6a1 to your computer and use it in GitHub Desktop.
Save chooh/ad6d4de73ad3faf7773d62275d82c6a1 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {
overlays = [
(self: super: rec {
beam = super.beam // { defaultVersion = "erlangR25"; };
elixir = super.elixir_1_14;
elixir_ls = super.elixir_ls.override { elixir = elixir; };
})
];
};
mkShell {
buildInputs = [ elixir elixir_ls git flyctl ]
++ lib.optional stdenv.isDarwin terminal-notifier # For ExUnit Notifier on macOS.
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
# For file_system on macOS.
CoreFoundation
CoreServices
]);
ERL_AFLAGS = "-kernel shell_history enabled";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment