Skip to content

Instantly share code, notes, and snippets.

@arianvp
Created March 8, 2023 12:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arianvp/280b2f700d1b2f6a5c6b704b5c97e40e to your computer and use it in GitHub Desktop.
thesis.nix
{ pkgs ? import <nixpkgs> {} }:
let
fontsConf = pkgs.makeFontsConf {
fontDirectories = [ ./fonts ];
};
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive)
appendix
tikzmark
biblatex
beamer
translator
colortbl
ccaption
currfile
environ
pgfopts
metafont
etoolbox
euenc
fancyvrb
siunitx
filehook
fontspec
trimspaces
graphics
ifluatex
ifxetex
ifmtarg
latexmk
lazylist
logreq
pgf
polytable
pgfplots
scheme-basic
beamertheme-metropolis
zapfding
stmaryrd
subfiles
titlesec
tikz-cd
titling
tocloft
unicode-math
xcolor
listings
quotchap
xetex
xifthen
xkeyval
setspace
xstring
;
};
in
pkgs.stdenv.mkDerivation {
name = "thesis";
src = ./.;
FONTCONFIG_FILE = "${fontsConf}";
buildInputs = [ pkgs.gnuplot pkgs.biber pkgs.haskellPackages.lhs2tex pkgs.fontconfig texlive pkgs.entr ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment