build: add nix-env for building the proxy #1354
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch adds a simple nix-env configuration for building the proxy
locally on NixOS. This does not yet introduce a derivation for
packaging the proxy as a Nix package, just a nix-env for local
development for Nix users.
Actually packaging the proxy for Nix could be
fun, but it's not really necessary, since the proxy is not currently
distributed as a package for other package managers --- it's distributed
as a docker image. If we were going to actually distribute something as a
Nix package, it would be the Linkerd CLI (which could be worth doing!).
This branch does include the necessary configuration to build
cloudflare/boring
, which is added as a dependency by @olix0r'sPR #1351. I've confirmed that it is possible to build that branch with
these configs, but I opened this as a separate PR against
main
so thatwe can merge it separately. Currently, we do have to build
boringssl
from source, rather than depending on it from nixpkgs, which is kind of
a bummer, but this can be fixed later.