3 ms·
By chance, do you have some public/sample projects that use this approach?
by drdaeman 10y ago
By 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