Hacker News new | ask | show | jobs
by drdaeman 3681 days ago
By chance, do you have some public/sample projects that use this approach?
1 comments

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)

https://github.com/garbas/pypi2nix