build(nix): add nix flake so NixOS users can use the CLI#58
build(nix): add nix flake so NixOS users can use the CLI#58JasmineLowen wants to merge 4 commits intozmkfirmware:mainfrom
Conversation
flake.nix
Outdated
| packages.default = self'.packages.zmk-cli; | ||
| packages.zmk-cli = python.buildPythonPackage (finalAttrs: { | ||
| pname = "zmk"; | ||
| version = "0.4.0"; |
There was a problem hiding this comment.
I'm not familiar with NixOS or how these files work.
Is it possible to have the version and dependency information be dynamically pulled from pyproject.toml instead of having to maintain a separate copy of it here?
If not, is there a tool that automatically generates this, or does it need to be kept up to date manually? Is it possible to set up a GitHub actions workflow that automatically updates this file or checks that the version and dependencies match pyproject.toml?
There was a problem hiding this comment.
Is it possible to have the version and dependency information be dynamically pulled from pyproject.toml instead of having to maintain a separate copy of it here?
Yes that's possible. Unfortunately the project uses dynamic=["version"] so that information is not present in the pyproject.toml. In this PR I'll change this to make the version part of the pyproject.toml
If not, is there a tool that automatically generates this, or does it need to be kept up to date manually? Is it possible to set up a GitHub actions workflow that automatically updates this file or checks that the version and dependencies match pyproject.toml?
I'm not sure about this. Possibly, but I'm not aware of one that would use the latest tag and update the flake with it.
There was a problem hiding this comment.
Let me know if the changes made it better or worse ^^
Hi, I just packaged the CLI for nix so nix users can use it :) I thought it would be nice to contribute this to the repository so more people can make use of it c: