Skip to content

Commit 3b66ed3

Browse files
committed
shell.nix: messy init
nix-shell --run make N.B. This just wraps runghc nicely for now.
1 parent cfa1508 commit 3b66ed3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

shell.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{ nixpkgs ? import <nixpkgs> {}
2+
, compiler ? "ghc802"
3+
}:
4+
5+
6+
let
7+
inherit (nixpkgs) pkgs;
8+
ghc = pkgs.haskell.packages."${compiler}".ghcWithPackages (ps: with ps; [
9+
pandoc
10+
]);
11+
# FIXME: TeX Live is pretty much broken in Nix right now.
12+
# xelatex = pkgs.texlive.combine {
13+
# inherit (pkgs.texlive) scheme-small xetex latexmk todonotes;
14+
# };
15+
in
16+
17+
pkgs.stdenv.mkDerivation {
18+
name = "software-foundations-env";
19+
20+
buildInputs = [ ghc ];
21+
# TODO:
22+
# [ ghc xelatex ] ++
23+
# (with pkgs; [ python3 ]) ++
24+
# (with pkgs.python35Packages; [ pygments ]);
25+
}

0 commit comments

Comments
 (0)