diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5c858a9 --- /dev/null +++ b/default.nix @@ -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 + ''; +} diff --git a/resume.typ b/resume.typ index d47c0ce..5969b55 100644 --- a/resume.typ +++ b/resume.typ @@ -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)