-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
31 lines (22 loc) · 1.14 KB
/
default.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
27
28
29
30
31
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs ;
devel = import (builtins.fetchTarball https://github.com/rlupton20/alt-nixpkgs/archive/master.tar.gz) {};
ghc = haskellPackages.ghcWithHoogle(packages: with packages; [
cabal-install happy ghc-mod
hindent hlint hasktags
stylish-haskell structured-haskell-mode
]);
tools = [ ghc pkgs.stack ];
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
treeThreads = devel.haskellLibraries.treeThreads;
concurrentStack = devel.haskellLibraries.concurrentStack;
vanguardCore = devel.vanguard.vanguardCore;
vanguard = haskellPackages.callPackage ./vanguard.nix { additionalTools = tools;
tree-threads = treeThreads;
concurrent-stack = concurrentStack;
vanguard-core = vanguardCore; };
in
if pkgs.lib.inNixShell then vanguard.env else vanguard