Merge pull request #266469 from ambroisie/fix-tandoor-recipes
tandoor-recipes: fix `django-allauth`
This commit is contained in:
commit
0e8902941b
2 changed files with 5 additions and 25 deletions
|
@ -3,33 +3,8 @@ import ./make-test-python.nix ({ lib, ... }: {
|
||||||
meta.maintainers = with lib.maintainers; [ ambroisie ];
|
meta.maintainers = with lib.maintainers; [ ambroisie ];
|
||||||
|
|
||||||
nodes.machine = { pkgs, ... }: {
|
nodes.machine = { pkgs, ... }: {
|
||||||
# Setup using Postgres
|
|
||||||
services.tandoor-recipes = {
|
services.tandoor-recipes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
DB_ENGINE = "django.db.backends.postgresql";
|
|
||||||
POSTGRES_HOST = "/run/postgresql";
|
|
||||||
POSTGRES_USER = "tandoor_recipes";
|
|
||||||
POSTGRES_DB = "tandoor_recipes";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.postgresql = {
|
|
||||||
enable = true;
|
|
||||||
ensureDatabases = [ "tandoor_recipes" ];
|
|
||||||
ensureUsers = [
|
|
||||||
{
|
|
||||||
name = "tandoor_recipes";
|
|
||||||
ensurePermissions."DATABASE tandoor_recipes" = "ALL PRIVILEGES";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services = {
|
|
||||||
tandoor-recipes = {
|
|
||||||
after = [ "postgresql.service" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,11 @@ python.pkgs.pythonPackages.buildPythonPackage rec {
|
||||||
patches = [
|
patches = [
|
||||||
# Allow setting MEDIA_ROOT through environment variable
|
# Allow setting MEDIA_ROOT through environment variable
|
||||||
./media-root.patch
|
./media-root.patch
|
||||||
|
# https://github.com/TandoorRecipes/recipes/pull/2706
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/TandoorRecipes/recipes/commit/8f66f5c3ca61751a80cc133ff4c59019d6fca406.patch";
|
||||||
|
hash = "sha256-oF5YlPg1LEdLvKpxiSqjTmYPbrGquPlRIz6A05031gs=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue