| ▲ | lloeki 6 months ago | |||||||
> We have a private repo with pre-compiled binaries, and a simple Homebrew formula that downloads the utilities and installs them. Perfectly doable with Nix. Ignore the purists and do the hackiest way that works. It's too bad that tutorials get lost on concepts (which are useful to know but a real turn down) instead of focusing on some hands-on practical how-to. This should about do it and is really not that different nor difficult than formulas or brew install:
(I just cobbled that up together, if it doesn't work as is it's damn close; flakes left as an exercise to the reader)Note: if it's a private repo then in /etc/nix/netrc (or ~/.config/nix/netrc for single user installs):
> Compiling the binaries requires quite a few tools (C++, sigh).Instantly sounds like a whole reason to use nix and capture those tools as part of the dependency set. | ||||||||
| ▲ | cyberax 6 months ago | parent [-] | |||||||
Hm. That actually sounds doable (we do have hashes for integrity). I'll try that and see how it goes. > Instantly sounds like a whole reason to use nix and capture those tools as part of the dependency set. It's tempting, and I tried that, but ran away crying. We're using Docker images instead for now. We are also using direnv that transparently execs commands inside Docker containers, this works surprisingly well. | ||||||||
| ||||||||