aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: df3ed18ebd22a1fedb289684a45185701c225687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ pkgs ? (import <nixpkgs> {})
, compiler ? "ghc7102"
}:

let
  ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages (ps: with ps; [
    cabal-install hlint cabal2nix
  ] ++ (builtins.attrValues (import ./default.nix {})));
in
pkgs.stdenv.mkDerivation {
  name = "thermoprinter-env";
  buildInputs = [ ghc ];
  shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)";
}