Add nix file; add resume document metadata
This commit is contained in:
parent
8c24223ac0
commit
4a7217f9e1
28
default.nix
Normal file
28
default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
#set document(title: "Greg Shuflin Resume", author: "Greg Shuflin")
|
||||||
#set page("us-letter", margin: 0.5in)
|
#set page("us-letter", margin: 0.5in)
|
||||||
#set text(font: "Inter") // Note - not quite the font from my old resume
|
#set text(font: "Inter") // Note - not quite the font from my old resume
|
||||||
#show link: orig => text(font: "Inconsolata", orig)
|
#show link: orig => text(font: "Inconsolata", orig)
|
||||||
|
Loading…
Reference in New Issue
Block a user