Created
January 7, 2020 17:03
-
-
Save gausby/3dd76fd09de82308bf895728f0ddc2c3 to your computer and use it in GitHub Desktop.
Start a nix shell with Elixir 1.10.0-rc.0
This file contains hidden or 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; | |
erlang_wx = erlangR21.override { | |
wxSupport = true; | |
}; | |
elixir = (beam.packagesWith erlang_wx).elixir.override { | |
version = "1.10.0-rc.0"; | |
rev = "105770cfa0ac0591c1fecca17f2221e0ac6af051"; | |
sha256 = "1w90b7li43ks8bjgdxiw7mgvg4zly16va4harz7ijjlq1rk2426b"; | |
}; | |
in | |
mkShell { | |
buildInputs = [ elixir git wxmac ] | |
++ optional stdenv.isLinux inotify-tools # For file_system on Linux. | |
++ 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