fix latex CI

This commit is contained in:
Valentin Boettcher 2023-03-10 21:08:35 -05:00
parent b4c95f832a
commit 203935dd7b
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE
2 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: cd papers/Report
- run: nix build
- run: nix build .
- run: cp result/index.pdf report.pdf
- uses: actions/upload-artifact@v3

View file

@ -21,17 +21,18 @@
rec {
packages = {
document = pkgs.stdenvNoCC.mkDerivation rec {
name = "maxwell_time_scale_separation";
name = "reservoir_eng";
src = self;
buildInputs = [ pkgs.coreutils tex pkgs.biber ];
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
export PATH="${pkgs.lib.makeBinPath buildInputs}";
cd papers/Report/
mkdir -p .cache/texmf-var
mkdir -p output/src
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
OSFONTDIR=${pkgs.tex-gyre-math.pagella}/share/fonts/opentype:${pkgs.gyre-fonts}/share/fonts:${pkgs.liberation_ttf}/share/fonts:${pkgs.lato}/share/fonts/lato:${pkgs.raleway}/share/fonts:${pkgs.lmodern}/share/fonts \
latexmk ./index.tex
latexmk index.tex
'';
installPhase = ''
mkdir -p $out