commit bc256c36cb588dc87c1ae16c0e4b42cba82aaad9
parent 3bcff05b5036d6ec84c0471f83c0138704135f04
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 28 Jul 2020 08:28:30 +0300
Add taginfo-tools
Diffstat:
3 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/nix/sources.json b/nix/sources.json
@@ -729,6 +729,20 @@
"url": "https://github.com/selectel/supload/archive/70690682867713c68d7c6daa833a1013e79df407.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
+ "taginfo-tools": {
+ "branch": "master",
+ "builtin": false,
+ "date": "2020-07-28T18:52:53Z",
+ "description": "C++ tools used in taginfo processing",
+ "homepage": "https://wiki.openstreetmap.org/wiki/Taginfo",
+ "owner": "taginfo",
+ "repo": "taginfo-tools",
+ "rev": "62c6068e01ded3b121eebd6fb1f99a50c46e5138",
+ "sha256": "0rcckkv3s0cjhmi6g6q3zbg8y72cha5hixsfxa5gg1l7b7w3hf41",
+ "type": "tarball",
+ "url": "https://github.com/taginfo/taginfo-tools/archive/62c6068e01ded3b121eebd6fb1f99a50c46e5138.tar.gz",
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
"tilesets-cli": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -150,6 +150,7 @@ lib.makeScope newScope (
else callPackage ./tools/dict/stardict-tools { };
supermercado = callPackage ./tools/geo/supermercado { };
supload = callPackage ./tools/supload { };
+ taginfo-tools = callPackage ./tools/geo/taginfo-tools { };
tilesets-cli = callPackage ./tools/geo/tilesets-cli { };
tpkutils = callPackage ./tools/geo/tpkutils { };
xfractint = callPackage ./tools/xfractint { };
diff --git a/pkgs/tools/geo/taginfo-tools/default.nix b/pkgs/tools/geo/taginfo-tools/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, cmake, bzip2, expat, gd, icu, libosmium, protozero, sparsehash, sqlite, zlib, sources }:
+let
+ pname = "taginfo-tools";
+ date = stdenv.lib.substring 0 10 sources.taginfo-tools.date;
+ version = "unstable-" + date;
+in
+stdenv.mkDerivation {
+ inherit pname version;
+ src = sources.taginfo-tools;
+
+ cmakeFlags = stdenv.lib.optional stdenv.isDarwin "-DCMAKE_FIND_FRAMEWORK=LAST";
+
+ nativeBuildInputs = [ cmake ];
+ buildInputs = [ bzip2 expat gd icu libosmium protozero sparsehash sqlite zlib ];
+
+ postInstall = ''
+ install -Dm755 src/{osmstats,taginfo-sizes} -t $out/bin
+ '';
+
+ meta = with stdenv.lib; {
+ inherit (sources.taginfo-tools) description homepage;
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}