nur-packages

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

commit 1a893b0eaecc95718f579faa1745c13fe1a1213a
parent ec3aa8dd08f1f9733c5f4ae71d6fb30db7e2805c
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 24 Dec 2019 10:05:01 +0300

Add mbtileserver

Diffstat:
Mdefault.nix | 3+++
Mnix/sources.json | 12++++++++++++
Apkgs/mbtileserver/default.nix | 16++++++++++++++++
3 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -47,6 +47,9 @@ in { gt4gd = python3Packages.callPackage ./pkgs/gt4gd { inherit (sources) google-translate-for-goldendict; }; + mbtileserver = callPackage ./pkgs/mbtileserver { + inherit (sources) mbtileserver; + }; mbutil = python3Packages.callPackage ./pkgs/mbutil { inherit (sources) mbutil; }; diff --git a/nix/sources.json b/nix/sources.json @@ -131,6 +131,18 @@ "url": "https://github.com/OpenOrienteering/mapper/archive/3c943cf1e11fe3b0268d2aea7b5365ffc1811bfa.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "mbtileserver": { + "branch": "master", + "description": "Basic Go server for mbtiles", + "homepage": null, + "owner": "consbio", + "repo": "mbtileserver", + "rev": "1043e833a649100426145caa2c6542a38834b280", + "sha256": "0mgd8id4z5qb8jhl7yra9zcwizjggpwq3byvcrbj858ddx5bfw3d", + "type": "tarball", + "url": "https://github.com/consbio/mbtileserver/archive/1043e833a649100426145caa2c6542a38834b280.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "mbutil": { "branch": "master", "description": "Importer and Exporter of MBTiles", diff --git a/pkgs/mbtileserver/default.nix b/pkgs/mbtileserver/default.nix @@ -0,0 +1,16 @@ +{ lib, buildGoModule, mbtileserver }: + +buildGoModule rec { + pname = "mbtileserver"; + version = lib.substring 0 7 src.rev; + src = mbtileserver; + + modSha256 = "0pa9dni3ihxnqpvarxmgvlm9wlgalnx97bdhy8s36as1rdzbgl16"; + + meta = with lib; { + description = mbtileserver.description; + homepage = "https://github.com/consbio/mbtileserver"; + license = licenses.isc; + maintainers = with maintainers; [ sikmir ]; + }; +}