Auto build
This commit is contained in:
@@ -7,3 +7,4 @@
|
||||
*.toc
|
||||
*.cls
|
||||
.direnv
|
||||
result
|
||||
@@ -27,10 +27,27 @@
|
||||
tex-gyre
|
||||
fancyhdr;
|
||||
};
|
||||
in
|
||||
in rec
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [(pkgs.texlive.combine texPkgs)];
|
||||
};
|
||||
packages.${system}.default = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
name = "aner-cv";
|
||||
src = self;
|
||||
buildInputs = [ pkgs.coreutils (pkgs.texlive.combine texPkgs) ];
|
||||
phases = ["unpackPhase" "buildPhase" "installPhase"];
|
||||
buildPhase = ''
|
||||
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
||||
mkdir -p .cache/texmf-var
|
||||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||
latexmk -xelatex --interaction=nonstopmode \
|
||||
cv-revised.tex
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp cv-revised.pdf $out/
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user