Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created October 8, 2019 02:33
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 matthew-piziak/c42a6b334b2c38e6396b2105c6b8037b to your computer and use it in GitHub Desktop.
Save matthew-piziak/c42a6b334b2c38e6396b2105c6b8037b to your computer and use it in GitHub Desktop.
let
pkgSource = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz";
pkgTarball = fetchTarball pkgSource;
pkgs = import pkgTarball { };
ghc = pkgs.haskell.compiler.ghc865;
in pkgs.haskell.lib.buildStackProject {
inherit ghc;
name = "myEnv";
buildInputs = with pkgs; [ zlib postgresql autoreconfHook libsodium.out libsodium.dev ];
shellHook = ''
stack install
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment