update downstream module file
This commit is contained in:
parent
a5e2fee7a9
commit
1884ac1d43
1 changed files with 48 additions and 48 deletions
|
|
@ -13,9 +13,7 @@ let
|
|||
pkg = cfg.package.overridePythonAttrs (old: {
|
||||
src = ./.;
|
||||
dependencies = old.dependencies ++ [ cfg.package.python.pkgs.mastodon-py ];
|
||||
postInstall =
|
||||
old.postInstall
|
||||
+ ''
|
||||
postInstall = old.postInstall + ''
|
||||
ln -s ${settingsFile} $out/${pkg.python.sitePackages}/froide_govplan/project/extra_settings.py
|
||||
|
||||
rm -r $out/${pkgs.python3.sitePackages}/froide_govplan/templates
|
||||
|
|
@ -169,9 +167,9 @@ in
|
|||
systemd = {
|
||||
services = {
|
||||
|
||||
postgresql.serviceConfig.ExecStartPost =
|
||||
postgresql-setup.serviceConfig.ExecStartPost =
|
||||
let
|
||||
sqlFile = pkgs.writeText "immich-pgvectors-setup.sql" ''
|
||||
sqlFile = pkgs.writeText "froide-govplan-postgis-setup.sql" ''
|
||||
CREATE EXTENSION IF NOT EXISTS postgis;
|
||||
'';
|
||||
in
|
||||
|
|
@ -190,14 +188,15 @@ in
|
|||
Group = "govplan";
|
||||
};
|
||||
after = [
|
||||
"postgresql.service"
|
||||
"postgresql.target"
|
||||
"network.target"
|
||||
"systemd-tmpfiles-setup.service"
|
||||
];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment =
|
||||
{
|
||||
PYTHONPATH = pkg.python.pkgs.makePythonPath (with pkg.python.pkgs; [
|
||||
environment = {
|
||||
PYTHONPATH = pkg.python.pkgs.makePythonPath (
|
||||
with pkg.python.pkgs;
|
||||
[
|
||||
|
||||
bleach
|
||||
django-admin-sortable2
|
||||
|
|
@ -226,7 +225,8 @@ in
|
|||
psycopg
|
||||
mastodon-py
|
||||
(toPythonModule (pkg))
|
||||
]);
|
||||
]
|
||||
);
|
||||
GDAL_LIBRARY_PATH = "${pkgs.gdal}/lib/libgdal.so";
|
||||
GEOS_LIBRARY_PATH = "${pkgs.geos}/lib/libgeos_c.so";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue