resume/default.nix
Greg Shuflin 027beb8acb Update to latest nixpkgs
And use newest typst behavior to build
2023-04-08 18:19:24 -07:00

29 lines
717 B
Nix

{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/0e19daa510e47a40e06257e205965f3b96ce0ac9.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 compile resume.typ "${resumeFilename}"
'';
installPhase = ''
mkdir -p $out
mv "${resumeFilename}" $out
'';
}