Re:Nix as OS X Package Manager
by hso1 on Wednesday May 25, 2016 @04:36PM
(#11772864)
Since I discovered Nix, I've been using it as a package manager for OS X and Linux. Every project my team is working on now has a default.nix file. Getting started on a project is so easy for a new hire now: just one `nix-env` away from a fully working dev environment! :D
[ Parent
| on HN ]
By chance, do you have some public/sample projects that use this approach?
Yes! Look here: https://git.hso.rocks/hso/def
Is a Telegram bot that queries the RAE dictionary (Spanish). It doesn't have any documentation yet, though :S
You can look for the project deps code here: https://git.hso.rocks/hso
Looks great, thanks for sharing! I'd definitely try this approach.
Do you write default.nix files by hand, or there are some tools to automate the process?
I suppose for a project with a lot of dependencies (one of my current requirements.txt is over 100 SLOC long - almost all deps are on PyPI; haven't checked nixpkgs as I'm stuck with Debian at the moment) it would be somewhat tiresome to check every package and for every missing one list all the dependencies.
give pypi2nix a try and ping me on irc if it fails (nick: garbas)