Add tooling for building in nix

This commit is contained in:
Stef Dunlap 2023-01-06 15:11:27 -05:00
parent 15bc2ce891
commit 5af074f19e
3 changed files with 13 additions and 1 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use nix

View File

@ -12,7 +12,7 @@ mkdir -p public
cp index.html photo.jpg resume.yml resume.json public
npx resume export public/resume.html --theme $theme
if [[ -z $flag || $flag != "--no-pdf" ]]; then
npx resume export public/resume.pdf --theme $theme
puppeteer print public/resume.html public/resume.pdf
fi
rm resume.json

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
just
puppeteer-cli
nodejs
];
}