Skip to content

Instantly share code, notes, and snippets.

@markus1189
Created July 15, 2018 08:33
Show Gist options
  • Save markus1189/713bbd6375fbc10d1ccc8c838fda1598 to your computer and use it in GitHub Desktop.
Save markus1189/713bbd6375fbc10d1ccc8c838fda1598 to your computer and use it in GitHub Desktop.
nix shell environment for the "category for programmers" latex build
# Run this command to build the pdf:
# > nix-shell --pure shell.nix --command 'cd src; make'
{ pkgs ? import <nixpkgs> {} }: with pkgs;
mkShell {
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus ]; };
buildInputs = [
(texlive.combine {
inherit (texlive)
fvextra
framed
newtx
nowidow
emptypage
wrapfig
subfigure
adjustbox
collectbox
tikz-cd
imakeidx
idxlayout
titlesec
subfiles
lettrine
upquote
scheme-medium
listings
minted
microtype
babel
todonotes
chngcntr
ifplatform
xstring
enumitem;
})
gnumake
pythonPackages.pygments
which
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment