2020-01-16 17:49:01 +03:00
|
|
|
{ pkgs ? import <nixpkgs> {}, compiler ? "ghc843" }: with pkgs;
|
2018-11-13 17:20:28 +03:00
|
|
|
let
|
|
|
|
ghcWithDeps = pkgs.haskell.packages.${compiler}.ghcWithPackages
|
|
|
|
( ps: with ps; [ base pandoc containers ] );
|
|
|
|
tex = with pkgs; texlive.combine {
|
|
|
|
inherit (texlive)
|
|
|
|
scheme-small
|
|
|
|
xetex
|
2020-01-16 17:49:01 +03:00
|
|
|
newunicodechar
|
2018-11-13 17:20:28 +03:00
|
|
|
;
|
|
|
|
};
|
2020-01-16 17:49:01 +03:00
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [ dejavu_fonts ];
|
|
|
|
};
|
2018-11-13 17:20:28 +03:00
|
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = "wiwinwlh-env";
|
|
|
|
buildInputs = [ ghcWithDeps tex ];
|
2020-01-16 17:49:01 +03:00
|
|
|
FONTCONFIG_FILE = fontsConf;
|
2018-11-13 17:20:28 +03:00
|
|
|
shellHook = ''
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
eval $(egrep ^export ${ghcWithDeps}/bin/ghc)
|
|
|
|
'';
|
|
|
|
}
|