Not a traditional job, but a small bounty ($100 USD):
I’m working on an open-source side product Typestream.io with a friend and I would like to do some more development. Small issue: He’s on Mac, I’m on NixOS.
I had a similar issue with a Maven project some time ago. The problem is that the protobuf authors are uploading binaries to Maven Central, which, besides being quite ugly, doesn’t work on NixOS. This should work:
Do a direnv allow (or nix develop . --impure) and try the gradle commands
I proposed another solution that, I think is simpler. It does not the same thing, and it is based on your previous attempt: Dynamic Linking and Java - #3 by jevy.
Instead of packaging an (elf-)patched version of protoc-gen-grpc-java, I use the buildFHSEnv to emulate an FSH-compliant system.
The command described in the contributing guides are working.
buildFHSEnv is great, but it’s Linux-only. macOS lacks the necessary containerization primitives (or even plain old bind mounts). For something portable with macOS you’ll have to patch or replace those binaries.
Hi everyone,
Thanks for @jlesquembre and @adfaure for tackling this problem. I feel a bit awkward because @adfaure DMed me before @jlesquembre and for what I need (local dev work) even @jlesquembre replied here first.
I think the FHS solution is simpler to maintain and what I’m looking for and I’m awarding the bounty to @adfaure. I appreciate you digging in for me though @jlesquembre .
Just a note, you for quick & dirty solutions, you can certainly enable nix-ld (with the appropriates libraries), see e.g my tutorial here Different methods to run a non-nixos executable on Nixos - Unix & Linux Stack Exchange for a list I find helpful. This way you can mostly develop like on any OS, but you lose the portability guarantee since you do not create a nix derivation.