Re: [Nix-dev] Depending on a service from inside an expression?

2015-04-28 Thread Tomas Hlavaty
Hi Mateusz, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk writes: There is a project that as part of its tests has to create a postgresql database which means that the postgres server needs to be running. Is there an easy way to achieve this? How does one go about testing such packages to begin

[Nix-dev] Depending on a service from inside an expression?

2015-04-27 Thread Mateusz Kowalczyk
Hi, There is a project that as part of its tests has to create a postgresql database which means that the postgres server needs to be running. Is there an easy way to achieve this? How does one go about testing such packages to begin with? -- Mateusz K.

Re: [Nix-dev] Depending on a service from inside an expression?

2015-04-27 Thread Ryan Trinkle
It's possible to run postgres with just a unix domain socket for communication, and no network access. Then, you can point your tests at that self-contained postgres environment. Would that work for your situation? On Mon, Apr 27, 2015 at 8:52 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: