Skip to content

Instantly share code, notes, and snippets.

@LucianU

LucianU/shell.nix

Created Jul 16, 2019
Embed
What would you like to do?
Example shell.nix for working with Yesod
let
compiler = "ghc843";
config = import ./pkgconfig.nix { inherit compiler; };
pkgs = import (import ./nixpkgs.nix) { inherit config; };
hpkgs = pkgs.haskell.packages.${compiler};
pkg = hpkgs.callPackage (import ./riskbook.nix) {};
in
{}: pkgs.lib.overrideDerivation pkg.env (old: {
buildInputs = old.buildInputs ++ [
hpkgs.hlint
hpkgs.apply-refact
pkgs.postgresql
];
shellHook = ''
export PGDATA=~/tmp/pgdata;
'';
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.