tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nominatim: init at 4.0.1
Mauricio Scheffer
3 years ago
d7e9eb35
5fbddc8d
+70
2 changed files
expand all
collapse all
unified
split
pkgs
servers
nominatim
default.nix
top-level
all-packages.nix
+68
pkgs/servers/nominatim/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, lib, fetchFromGitHub, fetchurl
2
+
, clang-tools, cmake, bzip2, zlib, expat, boost, git, pandoc, gzip
3
+
, postgresql_12
4
+
, python3, python3Packages, php
5
+
}:
6
+
7
+
let
8
+
countryGrid = fetchurl {
9
+
# Nominatim docs mention https://www.nominatim.org/data/country_grid.sql.gz but it's not a very good URL for pinning
10
+
url = "https://web.archive.org/web/20220323041006/https://nominatim.org/data/country_grid.sql.gz";
11
+
sha256 = "sha256-/mY5Oq9WF0klXOv0xh0TqEJeMmuM5QQJ2IxANRZd4Ek=";
12
+
};
13
+
in
14
+
stdenv.mkDerivation rec {
15
+
pname = "nominatim";
16
+
version = "4.0.1";
17
+
18
+
src = fetchFromGitHub {
19
+
owner = "osm-search";
20
+
repo = "Nominatim";
21
+
rev = "v${version}";
22
+
fetchSubmodules = true;
23
+
sha256 = "sha256-sKI/KBKveb5kAWJ7y1xw+ZF1thynr402rJhVjkIdFMo=";
24
+
};
25
+
26
+
nativeBuildInputs = [
27
+
cmake
28
+
clang-tools
29
+
git
30
+
pandoc
31
+
php
32
+
];
33
+
34
+
buildInputs = [
35
+
bzip2
36
+
zlib
37
+
expat
38
+
boost
39
+
python3
40
+
# python3Packages.pylint # We don't want to run pylint because the package could break on pylint bumps which is really annoying.
41
+
# python3Packages.pytest # disabled since I can't get it to run tests anyway
42
+
# python3Packages.behave # disabled since I can't get it to run tests anyway
43
+
postgresql_12
44
+
];
45
+
46
+
propagatedBuildInputs = with python3Packages; [
47
+
pyyaml
48
+
python-dotenv
49
+
psycopg2
50
+
psutil
51
+
jinja2
52
+
PyICU
53
+
datrie
54
+
];
55
+
56
+
postPatch = ''
57
+
mkdir -p ./data
58
+
ln -s ${countryGrid} ./data/country_osm_grid.sql.gz
59
+
'';
60
+
61
+
meta = with lib; {
62
+
description = "Search engine for OpenStreetMap data";
63
+
homepage = "https://nominatim.org/";
64
+
license = licenses.gpl2Plus;
65
+
platforms = platforms.unix;
66
+
maintainers = [ maintainers.mausch ];
67
+
};
68
+
}
+2
pkgs/top-level/all-packages.nix
···
1103
1104
midimonster = callPackage ../tools/audio/midimonster { };
1105
0
0
1106
pferd = callPackage ../tools/misc/pferd {};
1107
1108
qFlipper = libsForQt515.callPackage ../tools/misc/qflipper { };
···
1103
1104
midimonster = callPackage ../tools/audio/midimonster { };
1105
1106
+
nominatim = callPackage ../servers/nominatim { };
1107
+
1108
pferd = callPackage ../tools/misc/pferd {};
1109
1110
qFlipper = libsForQt515.callPackage ../tools/misc/qflipper { };