Created
February 29, 2020 00:38
-
-
Save boj/11804af04d001ef755952afba6cb2be9 to your computer and use it in GitHub Desktop.
Shell for hacking on Haskell Servant
This file contains 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
{ compiler ? "ghc844" }: | |
let | |
nixpkgs = import <nixpkgs> {}; | |
inherit (nixpkgs) pkgs stdenv; | |
in | |
# Make a new "derivation" that represents our shell | |
stdenv.mkDerivation { | |
name = "servant-dev"; | |
# The packages in the `buildInputs` list will be added to the PATH in our shell | |
buildInputs = [ | |
pkgs.cabal-install | |
pkgs.haskell.compiler.${compiler} | |
pkgs.postgresql | |
pkgs.xz | |
pkgs.zlib | |
]; | |
LC_ALL = "C"; | |
LIBRARY_PATH = "${pkgs.xz.out}/lib:${pkgs.zlib}/lib"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment