{ inputs.utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system}; tex = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-small cm-super moderncv fontawesome5; }; in { packages.default = pkgs.stdenvNoCC.mkDerivation { name = "resume"; src = self; nativeBuildInputs = [ tex ]; buildPhase = "pdflatex -interaction=nonstopmode resume.tex"; installPhase = '' mkdir -p $out cp resume.pdf $out/ ''; }; devShell = pkgs.mkShell { inputsFrom = [ self.packages.${system}.default ]; packages = with pkgs; [ entr typst ]; }; } ); }