Skip to content

Instantly share code, notes, and snippets.

@ejpcmac
Created September 26, 2018 20:29
Show Gist options
  • Save ejpcmac/d6ce6d21328fa14a3f621e8406732e16 to your computer and use it in GitHub Desktop.
Save ejpcmac/d6ce6d21328fa14a3f621e8406732e16 to your computer and use it in GitHub Desktop.
Bare minimum shell for Elixir projects
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
# I like to define variables for derivations that have
# a specific version and are subject to change over time.
elixir = beam.packages.erlangR21.elixir_1_7;
in
mkShell {
buildInputs = [ elixir git ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment