From 4a7217f9e19f09123bafea682d90e342188c08d8 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 27 Mar 2023 01:48:33 -0700 Subject: [PATCH] Add nix file; add resume document metadata --- default.nix | 28 ++++++++++++++++++++++++++++ resume.typ | 1 + 2 files changed, 29 insertions(+) create mode 100644 default.nix 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)