mirror of
https://github.com/sdiehl/wiwinwlh.git
synced 2024-10-26 20:57:32 +03:00
8009d67678
* 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
25 lines
625 B
Nix
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)
|
|
'';
|
|
}
|