Skip to content

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented Nov 3, 2021

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's
PR #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 that
we 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.

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's
PR #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 that
we 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.
@hawkw hawkw requested a review from a team November 3, 2021 18:36
hawkw added a commit that referenced this pull request Nov 6, 2021
@olix0r
Copy link
Member

olix0r commented Jan 19, 2022

Closing this in favor of #1432

@olix0r olix0r closed this Jan 19, 2022
@olix0r olix0r deleted the eliza/nix-env branch January 19, 2022 17:38
@hawkw
Copy link
Contributor Author

hawkw commented Jan 19, 2022

fair enough!

cratelyn added a commit to cratelyn/linkerd-nix that referenced this pull request Apr 14, 2025
this is a nix shell for use in development work on linkerd.

a hefty tip of the hat to @hawkw for authoring much of this shell
originally in linkerd/linkerd2-proxy#1354. 💜💐

see:
  * https://github.com/linkerd/linkerd2/
  * https://github.com/linkerd/linkerd2-proxy/

Co-authored-by: Eliza Weisman <[email protected]>
Signed-off-by: katelyn martin <[email protected]>
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.

3 participants