Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created December 21, 2016 03:20
Show Gist options
  • Save chris-martin/a6299d7c035e1432f46928fd0fa7507f to your computer and use it in GitHub Desktop.
Save chris-martin/a6299d7c035e1432f46928fd0fa7507f to your computer and use it in GitHub Desktop.
chris@renzo ~> cat ~/.stack/config.yaml
# This file contains default non-project-specific settings for 'stack', used
# in all projects. For more information about stack's configuration, see
# http://docs.haskellstack.org/en/stable/yaml_configuration.html
#
nix:
enable: true
pure: false
shell-file: /home/chris/.stack/shell.nix
chris@renzo ~> cat ~/.stack/shell.nix
{ pkgs ? import <nixpkgs> {}, ghc ? pkgs.ghc }:
with pkgs;
haskell.lib.buildStackProject {
name = "default-stack-shell";
inherit ghc;
buildInputs = [ zlib ];
# https://github.com/commercialhaskell/stack/issues/2358
LANG = "en_US.UTF-8";
# https://github.com/commercialhaskell/stack/commit/568938da
TMPDIR = "/tmp";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment