Skip to content

Instantly share code, notes, and snippets.

@coreyoconnor
Last active February 4, 2020 16:45
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 coreyoconnor/ad5f924ff21409bbf65720812642918a to your computer and use it in GitHub Desktop.
Save coreyoconnor/ad5f924ff21409bbf65720812642918a to your computer and use it in GitHub Desktop.
# nix-shell . -A env
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in rec {
env = pkgs.stdenv.mkDerivation rec {
name = "env";
shellHook = ''
alias cls=clear
'';
CLANG_PATH = pkgs.clang + "/bin/clang";
CLANGPP_PATH = pkgs.clang + "/bin/clang++";
JAVA_HOME = pkgs.jdk;
buildInputs = with pkgs; [
boehmgc
clang
coursier
flamegraph
libunwind
nodejs
jdk
python
re2
sbt
scalafmt
stdenv
zlib
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment