Skip to content

Instantly share code, notes, and snippets.

@boj
Created February 29, 2020 00:38
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 boj/11804af04d001ef755952afba6cb2be9 to your computer and use it in GitHub Desktop.
Save boj/11804af04d001ef755952afba6cb2be9 to your computer and use it in GitHub Desktop.
Shell for hacking on Haskell Servant
{ 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