29 lines
709 B
Nix
29 lines
709 B
Nix
{ 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
|
|
'';
|
|
}
|