fix flake
This commit is contained in:
parent
191f8bcd51
commit
b79d10e9c8
3 changed files with 39 additions and 16 deletions
25
flake.nix
25
flake.nix
|
|
@ -5,6 +5,7 @@
|
|||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
systems,
|
||||
nixpkgs,
|
||||
...
|
||||
|
|
@ -15,6 +16,30 @@
|
|||
f nixpkgs.legacyPackages.${system}
|
||||
);
|
||||
in {
|
||||
packages = eachSystem (pkgs: {
|
||||
default = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
name = "resume-latex";
|
||||
src = self;
|
||||
buildInputs = [
|
||||
pkgs.coreutils
|
||||
pkgs.findutils
|
||||
pkgs.texlive.combined.scheme-full
|
||||
];
|
||||
buildPhase = ''
|
||||
export PATH="${pkgs.lib.makeBinPath buildInputs}"
|
||||
echo $PATH
|
||||
mkdir -p .cache/texmf-var
|
||||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||
latexmk -interaction=nonstopmode -f -pdf \
|
||||
resume.tex
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp resume.pdf $out/
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
devShells = eachSystem (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue