geo.scm
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
3 | ;;; |
4 | ;;; This file is part of GNU Guix. |
5 | ;;; |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
9 | ;;; your option) any later version. |
10 | ;;; |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | ;;; GNU General Public License for more details. |
15 | ;;; |
16 | ;;; You should have received a copy of the GNU General Public License |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
18 | |
19 | (define-module (more packages geo) |
20 | #:use-module (guix packages) |
21 | #:use-module (guix download) |
22 | #:use-module (guix git-download) |
23 | #:use-module (guix build-system gnu) |
24 | #:use-module (guix build-system go) |
25 | #:use-module ((guix licenses) #:prefix license:) |
26 | #:use-module (gnu packages) |
27 | #:use-module (gnu packages compression) |
28 | #:use-module (gnu packages databases) |
29 | #:use-module (gnu packages geo) |
30 | #:use-module (gnu packages image) |
31 | #:use-module (gnu packages pcre) |
32 | #:use-module (gnu packages perl) |
33 | #:use-module (gnu packages pkg-config) |
34 | #:use-module (gnu packages web) |
35 | #:use-module (gnu packages xml)) |
36 | |
37 | (define-public tegola |
38 | (package |
39 | (name "tegola") |
40 | (version "0.6.3") |
41 | (source (origin |
42 | (method url-fetch) |
43 | (uri (string-append |
44 | "https://github.com/go-spatial/tegola/archive/v" |
45 | version ".tar.gz")) |
46 | (sha256 |
47 | (base32 |
48 | "0172ikggayprxmhhm9yfk1gc4i8m48llc8zzgqklbijkdpvp1zh0")))) |
49 | (build-system go-build-system) |
50 | (arguments |
51 | `(#:import-path "github.com/go-spatial/tegola/cmd/tegola" |
52 | #:unpack-path "github.com/go-spatial" |
53 | #:phases |
54 | (modify-phases %standard-phases |
55 | (add-before 'build 'rename-import |
56 | (lambda _ |
57 | (rename-file (string-append "src/github.com/go-spatial/tegola-" ,version) |
58 | "src/github.com/go-spatial/tegola") |
59 | #t))))) |
60 | (home-page "http://tegola.io") |
61 | (synopsis "Vector tile server for maps") |
62 | (description "Tegola is a free vector tile server written in Go. Tegola |
63 | takes geospatial data and slices it into vector tiles that can be efficiently |
64 | delivered to any client.") |
65 | (license license:expat))) |
66 |