nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 1dbc765165660aa91d813705f06cf6885efba2bf
parent b62597d519f9ad22d7254ff36fe282223086ad8d
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat,  9 Jan 2021 01:17:18 +0300

Add osm-area-tools

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/geo/osm-area-tools/default.nix | 42++++++++++++++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -843,6 +843,20 @@ "url": "https://github.com/btittelbach/openmtbmap_openvelomap_linux/archive/de24cd5d4168d8571c544ac42c51883af957a01a.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "osm-area-tools": { + "branch": "master", + "builtin": false, + "date": "2021-01-04T16:32:27Z", + "description": "OSM Area Tools", + "homepage": "https://osmcode.org/osm-area-tools/", + "owner": "osmcode", + "repo": "osm-area-tools", + "rev": "b96db0ced55f1bb574084620ca34f0a2e9d19b5a", + "sha256": "1awb2kj2afdcn29zl3cgrsmld0bwmf3z3f0bn1lhkbvpqzqgxh3c", + "type": "tarball", + "url": "https://github.com/osmcode/osm-area-tools/archive/b96db0ced55f1bb574084620ca34f0a2e9d19b5a.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "osm2mp": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -190,6 +190,7 @@ lib.makeScope newScope ( ocad2mp = callPackage ./tools/geo/ocad2mp { }; odict = callPackage ./tools/dict/odict { }; openmtbmap = callPackage ./tools/geo/openmtbmap { }; + osm-area-tools = callPackage ./tools/geo/osm-area-tools { }; osm2mp = perlPackages.callPackage ./tools/geo/osm2mp { inherit sources; inherit (perlPackages) GeoOpenstreetmapParser MatchSimple MathPolygon MathPolygonTree TreeR; diff --git a/pkgs/tools/geo/osm-area-tools/default.nix b/pkgs/tools/geo/osm-area-tools/default.nix @@ -0,0 +1,42 @@ +{ stdenv +, fetchFromGitHub +, cmake +, boost +, bzip2 +, expat +, gdal +, libosmium +, protozero +, sqlite +, zlib +, sources +}: + +stdenv.mkDerivation rec { + pname = "osm-area-tools"; + version = stdenv.lib.substring 0 10 sources.osm-area-tools.date; + + src = sources.osm-area-tools; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ + boost + bzip2 + expat + gdal + (libosmium.overrideAttrs (old: { + cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ]; + })) + protozero + sqlite + zlib + ]; + + meta = with stdenv.lib; { + inherit (sources.osm-area-tools) description homepage; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}