Add imposm
more/packages/geo.scm
63 | 63 | takes geospatial data and slices it into vector tiles that can be efficiently | |
64 | 64 | delivered to any client.") | |
65 | 65 | (license license:expat))) | |
66 | + | ||
67 | + | (define-public imposm3 | |
68 | + | (package | |
69 | + | (name "imposm3") | |
70 | + | (version "0.6.0-alpha.4") | |
71 | + | (source | |
72 | + | (origin | |
73 | + | (method url-fetch) | |
74 | + | (uri (string-append "https://github.com/omniscale/imposm3/archive/v" | |
75 | + | version ".tar.gz")) | |
76 | + | (file-name (string-append name "-" version ".tar.gz")) | |
77 | + | (sha256 | |
78 | + | (base32 | |
79 | + | "06f0kwmv52yd5m9jlckqxqmkf0cnqy3hamakrvg9lspplyqrds80")))) | |
80 | + | (build-system go-build-system) | |
81 | + | (arguments | |
82 | + | `(#:import-path "github.com/omniscale/imposm3/cmd/imposm" | |
83 | + | #:unpack-path "github.com/omniscale" | |
84 | + | #:phases | |
85 | + | (modify-phases %standard-phases | |
86 | + | (add-before 'build 'rename-import | |
87 | + | (lambda _ | |
88 | + | (rename-file (string-append "src/github.com/omniscale/imposm3-" ,version) | |
89 | + | "src/github.com/omniscale/imposm3") | |
90 | + | #t))))) | |
91 | + | (inputs | |
92 | + | `(("geos" ,geos) | |
93 | + | ("leveldb" ,leveldb))) | |
94 | + | (home-page "http://imposm.org/") | |
95 | + | (synopsis "OpenStreetMap importer for PostGIS.") | |
96 | + | (description "OpenStreetMap importer for PostGIS.") | |
97 | + | (license license:asl2.0))) | |
98 | + | ||
99 | + | (define-public osmconvert | |
100 | + | (package | |
101 | + | (name "osmconvert") | |
102 | + | (version "0") | |
103 | + | (source (origin | |
104 | + | (method url-fetch) | |
105 | + | (uri (string-append "http://m.m.i24.cc/osmconvert.c")) | |
106 | + | (sha256 | |
107 | + | (base32 | |
108 | + | "19glwq8w5sl8579zxbpydj56lybs94nrf47f3i2xjwlkmzrlljfv")))) | |
109 | + | (build-system gnu-build-system) | |
110 | + | (arguments | |
111 | + | `(#:tests? #f; no tests | |
112 | + | #:phases | |
113 | + | (modify-phases %standard-phases | |
114 | + | (delete 'unpack) | |
115 | + | (delete 'configure) | |
116 | + | (delete 'install) | |
117 | + | (replace 'build | |
118 | + | (lambda* (#:key inputs outputs #:allow-other-keys) | |
119 | + | (mkdir-p (string-append (assoc-ref outputs "out") "/bin")) | |
120 | + | (invoke "gcc" (assoc-ref inputs "source") "-lz" "-o" | |
121 | + | (string-append (assoc-ref outputs "out") "/bin/osmconvert")) | |
122 | + | (chmod (string-append (assoc-ref outputs "out") "/bin/osmconvert") | |
123 | + | #o755) | |
124 | + | #t))))) | |
125 | + | (inputs | |
126 | + | `(("zlib" ,zlib))) | |
127 | + | (home-page "") | |
128 | + | (synopsis "") | |
129 | + | (description "") | |
130 | + | (license license:agpl3+))) |