diff options
Diffstat (limited to 'pkgs/servers/nominatim/default.nix')
-rw-r--r-- | pkgs/servers/nominatim/default.nix | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/pkgs/servers/nominatim/default.nix b/pkgs/servers/nominatim/default.nix index 3994177e084..8c0410b87ac 100644 --- a/pkgs/servers/nominatim/default.nix +++ b/pkgs/servers/nominatim/default.nix @@ -1,7 +1,8 @@ { stdenv, lib, fetchFromGitHub, fetchurl -, clang-tools, cmake, bzip2, zlib, expat, boost, git, pandoc, gzip -, postgresql_12 -, python3, python3Packages, php +, clang-tools, cmake, bzip2, zlib, expat, boost, git, pandoc +# Nominatim needs to be built with the same postgres version it will target +, postgresql +, python3, php }: let @@ -36,21 +37,19 @@ stdenv.mkDerivation rec { zlib expat boost - python3 + (python3.withPackages (ps: with ps; [ + pyyaml + python-dotenv + psycopg2 + psutil + jinja2 + pyicu + datrie + ])) # python3Packages.pylint # We don't want to run pylint because the package could break on pylint bumps which is really annoying. # python3Packages.pytest # disabled since I can't get it to run tests anyway # python3Packages.behave # disabled since I can't get it to run tests anyway - postgresql_12 - ]; - - propagatedBuildInputs = with python3Packages; [ - pyyaml - python-dotenv - psycopg2 - psutil - jinja2 - pyicu - datrie + postgresql ]; postPatch = '' |