resume/flake.nix
2023-06-17 01:46:02 -07:00

32 lines
772 B
Nix

{
description = "Greg Shuflin Resume";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
resumeFilename = "Greg Shuflin Resume.pdf";
in
{
packages.default = pkgs.stdenv.mkDerivation {
name = "Greg Shuflin Resume";
nativeBuildInputs = [ pkgs.typst ];
src = ./.;
buildPhase = ''
typst compile resume.typ "${resumeFilename}"
'';
installPhase = ''
mkdir -p $out
mv "${resumeFilename}" $out
'';
};
});
}