dyson / pkl-flake

A Nix Flake for the pkl-cli binary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pkl-flake

CI

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.

Quick Start

Run Pkl with nix run:

nix run github:capslock/pkl-flake -- --help

Auto Updates

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 against current.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.

Performing manual updates

Prerequisites: curl, jq, and nix.

Update the flake by running:

bash update.sh

current.json is updated on success.

Contributing

Contributions are welcome! Submit issues and pull requests for improvements or bug fixes.

About

A Nix Flake for the pkl-cli binary

License:Apache License 2.0


Languages

Language:Nix 50.2%Language:Shell 49.8%