resume/flake.nix

32 lines
772 B
Nix
Raw Permalink Normal View History

2023-06-17 01:46:02 -07:00
{
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; };
2024-10-15 21:01:52 -07:00
resumeFilename = "Greg-Shuflin-Resume.pdf";
2023-06-17 01:46:02 -07:00
in
{
packages.default = pkgs.stdenv.mkDerivation {
2024-10-15 21:01:52 -07:00
name = "Greg-Shuflin-Resume";
2023-06-17 01:46:02 -07:00
nativeBuildInputs = [ pkgs.typst ];
src = ./.;
buildPhase = ''
typst compile resume.typ "${resumeFilename}"
'';
installPhase = ''
mkdir -p $out
mv "${resumeFilename}" $out
'';
};
});
}