-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
26 lines (26 loc) · 823 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
let
pkgs = import <nixpkgs> {};
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: with pkgs.haskell.lib;{
ghc-syb-utils = dontCheck super.ghc-syb-utils;
};};
ghcWithPackages =
haskellPackages.ghcWithHoogle (g: with g;
[classy-prelude
hakyll
hakyll-favicon hakyll-filestore
hakyll-ogmarkup hakyll-series
base
pandoc pandoc-types
]);
in with pkgs;
runCommand "hakyll-env"
(with ghcWithPackages.haskellPackages;
rec
{ ghc = ghcWithPackages;
shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)";
buildInputs =
[ ghcWithPackages zsh ghc-mod hindent cabal-helper
cabal-install codex stylish-haskell hoogle hlint
align netcat-openbsd hdevtools];})
"echo success > $out"