commit 2a41e178e19455963a10cab9025dfefc188a1bca
parent 3f10b121e5cc1e488c2c1ce7aa3dba7a162bc1a3
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 20 Feb 2022 19:47:27 +0300
Add osm-tags-transform
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -328,6 +328,7 @@ lib.makeScope newScope (
osm-3s = callPackage ./osm/osm-3s { };
osm-area-tools = callPackage ./osm/osm-area-tools { };
osm-python-tools = callPackage ./osm/osm-python-tools { };
+ osm-tags-transform = callPackage ./osm/osm-tags-transform { };
osmcoastline = callPackage ./osm/osmcoastline { };
osmosis = callPackage ./osm/osmosis { };
osmwalkthrough = callPackage ./osm/osmwalkthrough { };
diff --git a/pkgs/osm/osm-tags-transform/default.nix b/pkgs/osm/osm-tags-transform/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchFromGitHub, cmake
+, bzip2, expat, libosmium, lua, protozero, zlib
+}:
+
+stdenv.mkDerivation rec {
+ pname = "osm-tags-transform";
+ version = "2022-02-19";
+
+ src = fetchFromGitHub {
+ owner = "osmcode";
+ repo = pname;
+ rev = "d8f8f729cddee97964081de25e591428dd610a9a";
+ sha256 = "sha256-PBxH5RGoimX+pyr17UAMJVbdknciT8M8WCzw6tWLwEs=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [
+ bzip2 expat libosmium lua protozero zlib
+ ];
+
+ cmakeFlags = [ "-DBUILD_TESTS=ON" ];
+
+ doCheck = true;
+
+ meta = with lib; {
+ description = "Transform tags in OSM files using Lua code";
+ inherit (src.meta) homepage;
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}