1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-08-16 15:30:35 +03:00
wiwinwlh/shell.nix
Igal Tabachnik 8009d67678 Fixing missing unicode characters in rendered PDF (#177)
* Tweaking fonts to support unicode characters + making it pretty

* Adding unicode mapping to math symbols for missing characters

* Trying older ghc to fix the CI build issues
2020-01-17 16:01:01 +00:00

25 lines
625 B
Nix

{ 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)
'';
}