Nix packaging: move to nixpkgs
florian-sanders-cc opened this issue · 3 comments
Context
The project documentation links to a third party repository to install the CLI with Nix.
As pointed out in #738, this repository is not maintained and would need to be updated.
We have been considering the subject of nix packaging lately and we think it would be better to move away from third party repositories and contribute the CLI package directly to the nixpkgs repository.
This would make it easier for users to install it and we would be in charge of maintaining the package.
We would also like to change the package code because Nix has evolved since the first versions of the CLI and there are new ways to package Node.js projects.
The package would rely on the Nix buildNpmPackage
helper instead of patching the prebuilt Linux binary.
There are several advantages to this:
- The package code is very easy to maintain, in fact it could even be maintained without much Nix knowledge,
- The package should work for every system supported by Nix instead of Linux only (since some people use Nix on MacOS for instance, it's a nice bonus to support this).
An example of the code is available as a flake on a separate personal repo (
It should be easy to transform it for nixpkgs.
The PR is ready to be submitted on Nixpkgs but we'll wait for the next Clever Tools release (coming very soon) because it fixes the build for MacOS (see #754).
PR has been created : NixOS/nixpkgs#319818
PR has been merged 🎉
I've also closed an (old) issue from a customer on nixpkgs: NixOS/nixpkgs#163506
I'll create a PR on this repo to update the docs about nix installation 👍