nur-packages

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

commit 6d68f506bb6616519e87eaa46ed4681d64bd6960
parent d914f286de6d677b0032883f40b79658d8895e77
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 14 Jul 2024 15:00:07 +0400

Add osmptparser

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/osmptparser/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -457,6 +457,7 @@ lib.makeScope newScope ( osmdbt = callPackage ./osm/osmdbt { }; osmium-surplus = callPackage ./osm/osmium-surplus { }; osmosis = callPackage ./osm/osmosis { }; + osmptparser = callPackage ./osm/osmptparser { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; overpassforge = callPackage ./osm/overpassforge { }; phyghtmap = callPackage ./osm/phyghtmap { }; diff --git a/pkgs/osm/osmptparser/default.nix b/pkgs/osm/osmptparser/default.nix @@ -0,0 +1,29 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "osmptparser"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "cualbondi"; + repo = "osmptparser"; + rev = "v${version}"; + hash = "sha256-+u1UP+hFI8fi+NAzQ4pIObo+ZCBBaEoIkUNvHPO7jSQ="; + }; + + cargoHash = "sha256-Hl0K3E6mIbdl4h6Q9pZp71OVdgsuc2jKQWvDaNKM4FA="; + + doCheck = false; + + meta = { + description = "Open Street Map Public Transport Parser"; + homepage = "https://github.com/cualbondi/osmptparser"; + license = lib.licenses.agpl3Plus; + maintainers = [ lib.maintainers.sikmir ]; + mainProgram = "osmptparser"; + }; +}