fix flake

This commit is contained in:
zack 2024-05-05 23:03:34 -04:00
parent 191f8bcd51
commit b79d10e9c8
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
3 changed files with 39 additions and 16 deletions

View file

@ -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 = [