-
Notifications
You must be signed in to change notification settings - Fork 6
/
shell.nix
69 lines (62 loc) · 1.77 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{ ghcVersion ? "ghc864"
, nixpkgs ? import ./nixpkgs.nix
}:
let
inherit (nixpkgs) pkgs;
inherit (pkgs) stdenv callPackage lib;
inherit (pkgs) texlive;
appRoot = builtins.toPath ./.;
pname = "bla";
version = "0.1.0";
hiePkgs = import (builtins.fetchGit {
url = https://github.com/domenkozar/hie-nix.git;
ref = "master";
rev = "19f47e0bf2e2f1a793bf87d64bf8266062f422b1";
}) { };
haskellPkgs = pkgs.haskell.packages."${ghcVersion}".extend(self: super: {
effpee = super.callPackage ./package.nix {};
Diff = pkgs.haskell.lib.dontCheck super.Diff;
});
rubyEnv = pkgs.bundlerEnv {
inherit (pkgs) ruby;
name = "effpee-ruby";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
texliveEnv = texlive.combine {
inherit (texlive)
beamer beamertheme-metropolis pgf pgfopts pdfpages pdftools
listings collection-fontsrecommended collection-mathscience
collection-xetex fancyvrb fontspec caption tikz-cd fira
etoolbox trimspaces environ ulem capt-of wrapfig tcolorbox
booktabs translator minted fvextra upquote lineno ifplatform
xstring framed float mathtools;
};
# Add development tools on top of the package dependencies since the package build shouldn't depend on dev tools
haskellDevEnv = haskellPkgs.ghcWithPackages (p: with p; [
ghcid
cabal-install
stylish-haskell
stylish-cabal
doctest
hlint
hoogle
hasktags
]);
in haskellPkgs.shellFor {
packages = p: with p; [ effpee ];
buildInputs =with pkgs; [
cabal2nix
bats
haskellDevEnv
texliveEnv
plantuml
pythonPackages.pygments
graphviz
rubyEnv.wrappedRuby
bundix
geckodriver
];
withHoogle = true;
}