2023-04-08 18:19:24 -07:00
|
|
|
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/0e19daa510e47a40e06257e205965f3b96ce0ac9.tar.gz") {}}:
|
2023-03-27 01:48:33 -07:00
|
|
|
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 = ''
|
2023-04-08 18:19:24 -07:00
|
|
|
typst compile resume.typ "${resumeFilename}"
|
2023-03-27 01:48:33 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv "${resumeFilename}" $out
|
|
|
|
'';
|
|
|
|
}
|