nur-packages

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

commit 32a74db36508722c5ba05832af7311ba9db9a0c4
parent 89e0c221d0370ff9bc362411b0a6538b4948c946
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 19 Dec 2019 20:01:55 +0300

Add gpxtools

Diffstat:
Mdefault.nix | 1+
Mnix/sources.json | 12++++++++++++
Apkgs/gpxtools/default.nix | 22++++++++++++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -10,6 +10,7 @@ in gpx-layer = perlPackages.callPackage ./pkgs/gpx-layer { inherit (sources) gpx-layer; }; gpxpy = python3Packages.callPackage ./pkgs/gpxpy { inherit (sources) gpxpy; }; gpxsee-maps = callPackage ./pkgs/gpxsee-maps { inherit (sources) GPXSee-maps; }; + gpxtools = callPackage ./pkgs/gpxtools { inherit (sources) gpxtools; }; gt4gd = python3Packages.callPackage ./pkgs/gt4gd { inherit (sources) google-translate-for-goldendict; }; mbutil = python3Packages.callPackage ./pkgs/mbutil { inherit (sources) mbutil; }; } diff --git a/nix/sources.json b/nix/sources.json @@ -59,6 +59,18 @@ "url": "https://github.com/tkrajina/gpxpy/archive/5e81b930c81cb88f3534e6f48d970c367de302b7.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "gpxtools": { + "branch": "master", + "description": "A collection of c++ tools for using GPX files ", + "homepage": null, + "owner": "irdvo", + "repo": "gpxtools", + "rev": "b989f357abb9f9b694cbe95081dd8d1094019233", + "sha256": "0zqdfv8qh6k5am17xnzhpki2rlvf5vpfjdpxazgli3pzbv2i6dbn", + "type": "tarball", + "url": "https://notabug.org/irdvo/gpxtools/archive/b989f357abb9f9b694cbe95081dd8d1094019233.tar.gz", + "url_template": "https://notabug.org/<owner>/<repo>/archive/<rev>.tar.gz" + }, "mbutil": { "branch": "master", "description": "Importer and Exporter of MBTiles", diff --git a/pkgs/gpxtools/default.nix b/pkgs/gpxtools/default.nix @@ -0,0 +1,22 @@ +{ stdenv, cmake, expat, gpxtools }: + +stdenv.mkDerivation rec { + pname = "gpxtools"; + version = stdenv.lib.substring 0 7 src.rev; + src = gpxtools; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ expat ]; + + installPhase = '' + install -Dm755 gpx* -t $out/bin + ''; + + meta = with stdenv.lib; { + description = gpxtools.description; + homepage = "https://notabug.org/irdvo/gpxtools"; + license = licenses.gpl3; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux ++ platforms.darwin; + }; +}