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

Host pre-built Nix packages binary on Cachix #125

Open
mbekkomo opened this issue Mar 1, 2025 · 2 comments
Open

Host pre-built Nix packages binary on Cachix #125

mbekkomo opened this issue Mar 1, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@mbekkomo
Copy link
Contributor

mbekkomo commented Mar 1, 2025

Allow Nix packages pre-built to be hosted on Cachix. This reduces time for building the Nix packages, especially when it's used in projects that has Nix flake and are using this.

Things that are affected by this:

  • Packages in outputs.packages.
  • Newly created workflow action to push binaries onto Cachix store (every release).
@CppCXY CppCXY added the enhancement New feature or request label Mar 2, 2025
@CppCXY
Copy link
Owner

CppCXY commented Mar 2, 2025

That makes a lot of sense, but why not just use Cargo? Additionally, I am not familiar with Nix-related things; this was brought up by someone else's PR.

@mbekkomo
Copy link
Contributor Author

mbekkomo commented Mar 2, 2025

Because Nix uses a functional programming approach, where environments are immutable (cannot be modified directly) and packages are built and managed using a declarative configuration file (called a Nix expression). The current environment will be kept until a new configuration is evaluated and is used to "regenerate" a new environment. Cargo on the other hand will "modify it directly" and installs the package right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants