-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Officially support nix as a distribution channel #1242
Comments
I think we can do the following:
With this approach answers to both question are positive. |
I'm having issues with building a |
Vector is now at 0.6.0 in nixpkgs; see NixOS/nixpkgs@3e88e1b The reason you got a weird leveldb failure is because of the way Nix downloads Cargo dependencies, and the way the expression is written. In brief, Nix calls cargo twice: once to download the "vendored" set of dependencies into a local directory (in a highly restricted environment that is allowed network access), and once again to build everything using those dependencies in a second phase (with no network access.) Second, Cargo uses feature flags when it wants to resolve dependencies, obviously. The Nix expression for Vector upstream uses an "inclusive" set of feature flags -- nothing unlisted is enabled. In Vector 0.6.0, the LevelDB code was reworked to use a fork, which added a new dependency and a new feature flag. The nix expression for So this adds up to a situation like the following:
The long and short of this is that the upstream Nix expression should probably move to using feature list exclusion rather than inclusion, so cases like this are handled better. The only reason we need the flags right now is because I haven't worked out Kafka support, because |
Thanks @thoughtpolice. @a-rodin, before we close this out I want to make sure we:
|
We also need to ensure that all necessary run-time dependencies are added to the Nix package. In particular, I think we want |
To do this, I think we can proceed with the approach outlined in #1242 (comment), namely build the Nix package in CI and test it. I've created a separate issue #1430 to track progress on it. |
Happy to help with this if there's anything left to do. :) I've been using this package. |
Have you stopped updating nix packages? It's still at 0.8.1 released in March. |
@windware-ono The automatic update robot for the |
Following up on #1238, I'd like to officially support the
nix
package manager as a distribution channel. @thoughtpolice was nice enough to already add Vector. We should be able to create a release script for this, similar to what we did withhomebrew
. Before we begin work I would like to answer the following questions:nix
files file into our/distribution
folder so that we can maintain changes through our workflow, then sync the latest version when we tag a release? This obviously has the downside of getting out of sync with changes in the official repository.Noting, it's fine if we decide to manually maintain this. I would just like to remove the manual/human aspect from the release process where it reasonably makes sense.
Caveats
The text was updated successfully, but these errors were encountered: