News for hackers. Stuff that matters.
Re:How I develop with Nix by mercurial on Thursday August 13, 2015 @12:29AM (#10052254)
> But throw in a dependency on Redis and Postgres, and you get into territory where traditional tools fall over pretty quickly, especially if different branches of your codebase depend upon different versions of Redis.

Surely you would just depend on the driver, which is most likely going to be written in your high-level language.

A better point may be languages which rely a lot on C libraries (think Ruby and Python), and where having something like pip won't magically install the ImageMagick dependency your software needs.

Re:How I develop with Nix by technomancy on Thursday August 13, 2015 @01:14AM (#10052367)
The driver's not much good on its own.

Traditional dependency systems force you to track the version of the server itself outside the project's configuration.

Re:How I develop with Nix by KirinDave on Thursday August 13, 2015 @02:09PM (#10056108)
It's very strange to imagine that you'd host a DB in a conceptually local manner to application services. This couples things in a way that's very awkward for scaling. Even if you're not using containers, you almost never organize deploys this way outside of beta/dev environments.

And if you were to make such a decision, then you'd capture it in the closure required to run the code you built, so you'd sort of bake in the inclusion of those services into any deploy of your code, using Nix's philosophy.

Or am I misunderstanding you?

Re:How I develop with Nix by technomancy on Thursday August 13, 2015 @08:47PM (#10058055)
What I'm saying is that you should have a nix package for your application and one for your database server. Whether these run on the same machine or not is a question for how they're deployed, but it should be the same package that's pulled in by the production recipe and the dev recipe in any case.
Re:How I develop with Nix by mercurial on Thursday August 13, 2015 @03:50AM (#10052751)
So? This kind of service often sits on a different box anyway in production.
Re:How I develop with Nix by technomancy on Thursday August 13, 2015 @04:18AM (#10052807)
I'm not sure what point you're making. Are you saying it's not important to run the same version of all your dependencies in development as in production?
Re:How I develop with Nix by mercurial on Thursday August 13, 2015 @10:45AM (#10054581)
I'm saying that in production, your application will likely connect to a database on a remote machine, which may or not have the same version as the one you packaged and you use for local development.