4 ms·
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 star
by hso1 10y ago
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
- drdaeman 10y agoBy chance, do you have some public/sample projects that use this approach?
- hso1 10y agoYes! Look here: https://git.hso.rocks/hso/def 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 https://git.hso.rocks/hso
- drdaeman 10y agoLooks 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.
- rokgarbas 10y agogive pypi2nix a try and ping me on irc if it fails (nick: garbas) https://github.com/garbas/pypi2nix https://github.com/garbas/pypi2nix