1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-09-11 12:05:25 +03:00
wiwinwlh/shell.nix

25 lines
625 B
Nix
Raw Normal View History

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