08981e63c6
* //tools/nixery/popcount: replace removed buildGoPackage with buildGoModule. * //users/aspen/system/system/modules: pkgs.nerdfonts has been removed. Instead we have a pkgs.nerd-fonts attribute set that contains all fonts as individual derivations. * //users/tazjin/presentations: The ms package was removed from texlive for some reason in the latest release. Replace it with the packages it bundles (according to CTAN). * //tvix/verify-lang-tests: Test on latest Nix release 2.25.2. * //tvix/*-go: regenerate code from protobufs. Change-Id: I19fcb3a0267f929f6e7388aa69ad99ac53b62236 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12859 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: aspen <root@gws.fyi> Tested-by: BuildkiteCI
55 lines
982 B
Nix
55 lines
982 B
Nix
# This derivation builds the LaTeX presentation.
|
|
|
|
{ pkgs, ... }:
|
|
|
|
with pkgs;
|
|
|
|
let
|
|
tex = texlive.combine {
|
|
inherit (texlive)
|
|
beamer
|
|
beamertheme-metropolis
|
|
etoolbox
|
|
euenc
|
|
extsizes
|
|
fontspec
|
|
lualibs
|
|
luaotfload
|
|
luatex
|
|
minted
|
|
count1to
|
|
multitoc
|
|
prelim2e
|
|
ragged2e
|
|
pgfopts
|
|
scheme-basic
|
|
translator;
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "nuug-bootstrapping-slides";
|
|
src = ./.;
|
|
|
|
FONTCONFIG_FILE = makeFontsConf {
|
|
fontDirectories = [ fira fira-code fira-mono ];
|
|
};
|
|
|
|
buildInputs = [ tex fira fira-code fira-mono ];
|
|
buildPhase = ''
|
|
# LaTeX needs a cache folder in /home/ ...
|
|
mkdir home
|
|
export HOME=$PWD/home
|
|
# ${tex}/bin/luaotfload-tool -ufv
|
|
|
|
# As usual, TeX needs to be run twice ...
|
|
function run() {
|
|
${tex}/bin/lualatex presentation.tex
|
|
}
|
|
run && run
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp presentation.pdf $out/
|
|
'';
|
|
}
|