This repository provides a Nix Flake for Pkl, "[a] configuration as code language with rich validation and tooling."
Note that this repository simply takes the binary provided by the Pkl project and adapts it to work on Nix. This flake does not build the project from source.
Run Pkl with nix run
:
nix run github:capslock/pkl-flake -- --help
This repository has a github action that automatically runs once a day and checks for new releases of Pkl.
- This action uses the
update.sh
script to check the latest release againstcurrent.json
. - If a new release exists, the action will open a PR, updating
current.json
with the latest version timestamp and nix hashes. - Manual triggers of this action are supported.
Prerequisites: curl
, jq
, and nix
.
Update the flake by running:
bash update.sh
current.json
is updated on success.
Contributions are welcome! Submit issues and pull requests for improvements or bug fixes.