Skip to content
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

Add nix flake #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simonchatts
Copy link

I'm not sure if you'll want this or not (absolutely no problem if not!) but offering it in case.

The Nix package manager runs on Linux and macOS, often in addition to the system package manager. One of its features ("flakes") enables people to use packages even when not managed by the central package repo. With this addition, for example, someone can try out jless simply by running

nix run github:PaulJuliusMartinez/jless

(which if not already cached, downloads and builds the executable). More usefully, the "overlay" in flake.nix makes it easy to incorporate jless into a nix-managed reproducible+declarative environment (whether that's just a user environment, or an entire linux system).

These two files here don't have to change with the usual release cycle (eg they pick up the name/version from Cargo.toml). So they shouldn't be a maintenance burden, just additive.

This enables users who use the Nix package manager (see
https://nixos.org/explore.html) to easily try out jless, and include it in a
machine or user environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant