mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
This splits the complexity of the `flake.nix` into multiple files. At cross-compiled and static builds at the benefit of simpler nix expressions and generally better cross compilation compatibility. the same time, naersk is removed; causing much slower builds for cross- compiled packages. This partially addresses the points mentioned in #412.
30 lines
816 B
Nix
30 lines
816 B
Nix
{ stdenvNoCC, texlive, ncurses, python3Packages, which }:
|
|
|
|
let
|
|
customTexLiveSetup = (texlive.combine {
|
|
inherit (texlive) acmart amsfonts biber biblatex biblatex-software
|
|
biblatex-trad ccicons csquotes csvsimple doclicense eso-pic fancyvrb
|
|
fontspec gitinfo2 gobble ifmtarg koma-script latexmk lm lualatex-math
|
|
markdown mathtools minted noto nunito paralist pgf scheme-basic soul
|
|
unicode-math upquote xifthen xkeyval xurl;
|
|
});
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
name = "whitepaper";
|
|
src = ../papers;
|
|
nativeBuildInputs = [
|
|
ncurses # tput
|
|
python3Packages.pygments
|
|
customTexLiveSetup # custom tex live scheme
|
|
which
|
|
];
|
|
buildPhase = ''
|
|
export HOME=$(mktemp -d)
|
|
latexmk -r tex/CI.rc
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
mv *.pdf readme.md $out/
|
|
'';
|
|
}
|