Skip to content

Instantly share code, notes, and snippets.

@ejpcmac
Last active September 26, 2018 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejpcmac/e40b2f3adf992e5502f2c9b5ca11a8f5 to your computer and use it in GitHub Desktop.
Save ejpcmac/e40b2f3adf992e5502f2c9b5ca11a8f5 to your computer and use it in GitHub Desktop.
Shell for standard Elixir projects with file_system and ExUnit Notifier
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
inherit (lib) optional optionals;
elixir = beam.packages.erlangR21.elixir_1_7;
in
mkShell {
buildInputs = [ elixir git ]
++ optional stdenv.isLinux libnotify # For ExUnit Notifier on Linux.
++ optional stdenv.isLinux inotify-tools # For file_system on Linux.
++ optional stdenv.isDarwin terminal-notifier # For ExUnit Notifier on macOS.
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
# For file_system on macOS.
CoreFoundation
CoreServices
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment