Files
My-Resume-Generator/flake.nix
Jared Kling fddb3f5c3e
Some checks failed
Build and Publish / build_html (push) Failing after 6s
Build and Publish / convert_to_pdf (push) Failing after 44s
Build and Publish / upload_as_release (push) Successful in 2s
Move to weasyprint
2025-12-08 22:22:04 -06:00

48 lines
1.4 KiB
Nix

{
description = "Resume builder dev environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs
python313Packages.weasyprint
jq
curl
just
];
shellHook = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium
echo ""
echo "🚀 Resume Build Environment"
echo ""
echo "Node version: $( node -v)"
echo ""
echo "Quick commands:"
echo " just build # Build my resume"
echo ""
'';
};
}
);
}