Skip to content

Commit

Permalink
nix: make single-file output
Browse files Browse the repository at this point in the history
I.e. cv.pdf, no wrapping dir
  • Loading branch information
SomeoneSerge committed Oct 20, 2020
1 parent bf2d6d4 commit 030ee5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ let
in
{
cv = stdenv.mkDerivation {
name = "cv";
name = "cv.pdf";
buildInputs = [ myTexlive ];
src = ./.;
FONTCONFIG_FILE = fontsConf;
buildPhase = ''
latexmk -xelatex cv.tex || (cat cv.log >&2 && exit 1)
'';
installPhase = ''
mkdir $out
install cv.pdf $out/cv.pdf
install -m444 cv.pdf $out
'';
};
}

0 comments on commit 030ee5a

Please sign in to comment.