nur-packages

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

commit 890793ea800580159154d67cb3886b64789fd3fb
parent dad985af05563952ec5f85c2b631442b228d5045
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue,  6 Oct 2020 20:21:24 +0300

Add phyghtmap

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/tools/geo/phyghtmap/default.nix | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -157,6 +157,7 @@ lib.makeScope newScope ( inherit sources; inherit (perlPackages) GeoOpenstreetmapParser MatchSimple MathPolygon MathPolygonTree TreeR; }; + phyghtmap = callPackage ./tools/geo/phyghtmap { }; ptunnel = callPackage ./tools/networking/ptunnel { }; sendmap20 = callPackage ./tools/geo/sendmap20 { }; stardict-tools = diff --git a/pkgs/tools/geo/phyghtmap/default.nix b/pkgs/tools/geo/phyghtmap/default.nix @@ -0,0 +1,23 @@ +{ lib, python3Packages, fetchurl }: + +python3Packages.buildPythonApplication rec { + pname = "phyghtmap"; + version = "2.21"; + + src = fetchurl { + url = "http://katze.tfiu.de/projects/phyghtmap/phyghtmap_${version}.orig.tar.gz"; + sha256 = "08dsqsq6cxncr2gahd672kcvhfn0pr2mvspiim7j5v0vvgrjv2p8"; + }; + + propagatedBuildInputs = with python3Packages; [ beautifulsoup4 lxml matplotlib numpy ]; + + postInstall = "install -Dm644 docs/phyghtmap.1 -t $out/share/man/man1"; + + meta = with lib; { + description = "Generate OSM contour lines from NASA SRTM data"; + homepage = "http://katze.tfiu.de/projects/phyghtmap"; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}