Last active
September 26, 2018 20:48
-
-
Save ejpcmac/e40b2f3adf992e5502f2c9b5ca11a8f5 to your computer and use it in GitHub Desktop.
Shell for standard Elixir projects with file_system and ExUnit Notifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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