-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request to Add pkl (Configuration as Code Language) Package to NixOS #113
Comments
To make it work in NixOS, I followed the steps below (using jpkl).
|
output
|
I've written a brief blog post on setting up Pkl using Nix flakes on NixOS. Details available at https://byteshiva.medium.com/simplifying-configuration-with-pkl-cli-on-nixos-08790fbe4e5c |
There's a request (NixOS/nixpkgs#286104) with a WIP PR for packaging pkl on the nixpkgs repo: NixOS/nixpkgs#286658 There's also another flake (https://github.com/capslock/pkl-flake) which I've been using for the last few days. I think it just repackages the official native binary releases, so it doesn't require pulling in the entire JDK. |
I've been trying to package it for NixOS. The ideal way would be to build from source and not download the binary, the latter is only done for proprietary programs, in which case it is the only option. However, I've been having some issues, as described in the PR (NixOS/nixpkgs#286658), and any help would be appreciated. However, it is not hard to build pkl yourself in nix, if you desire. To build the Java version, you just need |
According to NixOS/nixpkgs#286658 (comment) the PR NixOS/nixpkgs#272380 (gradle: add setup hook) got merged, which might unblock the pkl work. |
Issue Description
Problem
The
pkl
package, a Configuration as Code language developed by Apple, is not currently available in the NixOS packages.Desired Outcome
Include the
pkl
package in NixOS packages.Package Information
Additional Context
pkl is a Configuration as Code language with rich validation and tooling. Adding it to NixOS packages would benefit users involved in configuration management and development workflows.
Environment Information
Reference Links
Thank you for considering this request.
The text was updated successfully, but these errors were encountered: