Add nix file; add resume document metadata

This commit is contained in:
Greg Shuflin 2023-03-27 01:48:33 -07:00
parent 8c24223ac0
commit 4a7217f9e1
2 changed files with 29 additions and 0 deletions

28
default.nix Normal file
View File

@ -0,0 +1,28 @@
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/5f9d1bb572e08ec432ae46c78581919d837a90f6.tar.gz") {}}:
let
stdenv = pkgs.stdenv;
gitignoreSrc = pkgs.fetchFromGitHub {
owner = "hercules-ci";
repo = "gitignore.nix";
rev = "a20de23b925fd8264fd7fad6454652e142fd7f73";
sha256 =
"sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=";
};
resumeFilename = "Greg Shuflin Resume.pdf";
in stdenv.mkDerivation {
name = "Greg Shuflin Resume";
nativeBuildInputs = [pkgs.typst];
#src = gitignoreSrc ./.;
src = ./.;
buildPhase = ''
typst resume.typ "${resumeFilename}"
'';
installPhase = ''
mkdir -p $out
mv "${resumeFilename}" $out
'';
}

View File

@ -1,3 +1,4 @@
#set document(title: "Greg Shuflin Resume", author: "Greg Shuflin")
#set page("us-letter", margin: 0.5in)
#set text(font: "Inter") // Note - not quite the font from my old resume
#show link: orig => text(font: "Inconsolata", orig)