From 8cc590710c0ae0e24ce2f74dba8f1cf4a3d66e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Sun, 30 Nov 2014 12:59:54 +0100 Subject: [PATCH 1/2] almir: pin the sqlalchemy version used by zope.sqlalchemy to 8 Otherwise, sqlalchemy 9 is used which triggers iElectric/almir#61 pinning it to 7 caused a build error. This does mean that both versions are on the PYTHONPATH, but it seems to work. --- pkgs/top-level/python-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fcb7eb212a0..874a20958d8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -309,8 +309,8 @@ let self.transaction self.waitress self.webhelpers - self.zope_sqlalchemy self.psycopg2 + (self.zope_sqlalchemy.override rec {propagatedBuildInputs = with self; [ sqlalchemy8 transaction ];}) ]; postInstall = '' From 1d5aecd356ca1486523a62d56b1da3f0c7f8c600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Sun, 30 Nov 2014 13:11:55 +0100 Subject: [PATCH 2/2] Almir module: set a working default sqlalchemy_engine_url --- nixos/modules/services/backup/almir.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/backup/almir.nix b/nixos/modules/services/backup/almir.nix index 5ce215c5c4b..ec39a997028 100644 --- a/nixos/modules/services/backup/almir.nix +++ b/nixos/modules/services/backup/almir.nix @@ -109,6 +109,7 @@ in { }; sqlalchemy_engine_url = mkOption { + default = "postgresql:///bacula"; example = '' postgresql://bacula:bacula@localhost:5432/bacula mysql+mysqlconnector://:@/'