nur-packages

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

commit 48359d8689a25c4ee0201bdd031d827aa66790e1
parent 47f5f522648120edf68d1eec1551e825427173d7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu,  7 Jul 2022 17:13:52 +0300

Add mod_mbtiles

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/geospatial/mod_mbtiles/default.nix | 33+++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -189,6 +189,7 @@ lib.makeScope newScope ( }; mbtiles2osmand = callPackage ./geospatial/mbtiles2osmand { }; mbutiles = callPackage ./geospatial/mbutiles { }; + mod_mbtiles = callPackage ./geospatial/mod_mbtiles { }; morecantile = callPackage ./geospatial/morecantile { }; orbisgis-bin = callPackage ./geospatial/orbisgis/bin.nix { jre = pkgs.jre8; }; ossim = callPackage ./geospatial/ossim { }; diff --git a/pkgs/geospatial/mod_mbtiles/default.nix b/pkgs/geospatial/mod_mbtiles/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, apacheHttpd, sqlite }: + +stdenv.mkDerivation rec { + pname = "mod_mbtiles"; + version = "unstable-2022-05-25"; + + src = fetchFromGitHub { + owner = "systemed"; + repo = pname; + rev = "f9d12a9581820630dd923c3c90aa8dcdcf65cb87"; + sha256 = "sha256-wOoLSNLgh0YXHUFn7WfUkQXpyWsgCrVZlMg55rvi9q4="; + }; + + buildInputs = [ apacheHttpd sqlite ]; + + buildPhase = '' + apxs -lsqlite3 -ca mod_mbtiles.c + ''; + + installPhase = '' + runHook preInstall + install -D .libs/mod_mbtiles.so -t $out/modules + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/systemed/mod_mbtiles"; + description = "Serve tiles with Apache directly from an .mbtiles file"; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + }; +}