Skip to content

Comments

Add nix flake#16

Open
simonchatts wants to merge 1 commit intoPaulJuliusMartinez:mainfrom
simonchatts:nix-flake
Open

Add nix flake#16
simonchatts wants to merge 1 commit intoPaulJuliusMartinez:mainfrom
simonchatts:nix-flake

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