Quick example on how to use floco with nix flakes to package a site based on astro.
To update pdefs.nix
after modifying package.json
, run:
nix run .#floco -- translate
To get a shell which allows you to run npm dev
, etc. run:
nix develop
Warning The following does not actually work yet, but you can run
npm run build
from the shell above
To get your built site in a nix derivation in result
, run:
nix build .#prepared
To get your built site in a tarball in result
, run:
nix build .#dist