guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#52548] [PATCH] gnu: Add osmium-tool.


From: Nikolay Korotkiy
Subject: [bug#52548] [PATCH] gnu: Add osmium-tool.
Date: Fri, 17 Dec 2021 02:03:13 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

RapidJSON is header-only library, so it doesn't make much sense to unbundle it, since upstream authors decided to vendor it. And such unbundling could complicate maintenance and package expression for no reason. The same story about msinttypes, RapidJSON vendors msinttypes.

Julien Lepiller kirjoitti 17.12.2021 klo 1.49:
Thanks for the patch! It looks good to me, but I wonder if we could
unbundle rapidjson and msinttypes? rapidjson is already a guix package,
and I'm not sure where msinttypes is used exactly.

Le Thu, 16 Dec 2021 14:53:46 +0300,
Nikolay Korotkiy <sikmir@gmail.com> a écrit :

* gnu/packages/geo.scm (osmium-tool): New variable.
---
  gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
  1 file changed, 30 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index cb5f4cbc64..63569a3bcf 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -82,6 +82,7 @@ (define-module (gnu packages geo)
    #:use-module (gnu packages graphics)
    #:use-module (gnu packages gtk)
    #:use-module (gnu packages haskell-apps)
+  #:use-module (gnu packages haskell-xyz)
    #:use-module (gnu packages image)
    #:use-module (gnu packages image-processing)
    #:use-module (gnu packages icu4c)
@@ -1198,6 +1199,35 @@ (define-public libosmium
  OpenStreetMap data.")
      (license license:boost1.0)))
+(define-public osmium-tool
+  (package
+    (name "osmium-tool")
+    (version "1.13.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/osmcode/osmium-tool";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
"0brifazzwnd4qx234z049wh4ii0a7jy79n8jc2f3ry6jcrijddkl"))))
+    (build-system cmake-build-system)
+    (inputs
+     (list libosmium))
+    (native-inputs
+     (list pandoc))
+    (home-page "https://osmcode.org/osmium-tool/";)
+    (synopsis "Osmium Command Line Tool")
+    (description "Command line tool for working with OpenStreetMap
data +based on the Osmium library")
+    (license (list
+               license:gpl3+
+               ;; rapidjson
+               license:expat
+               ;; msinttypes
+               license:bsd-3))))
+
  (define-public osm2pgsql
    (package
      (name "osm2pgsql")


--
Best regards,
Nikolay





reply via email to

[Prev in Thread] Current Thread [Next in Thread]