Merge pull request #63506 from sikmir/add-qtpbfimageplugin

qtpbfimageplugin: init at 1.4
This commit is contained in:
worldofpeace 2019-07-11 23:39:35 -04:00 committed by GitHub
commit 5c83eaef84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View File

@ -4736,6 +4736,11 @@
github = "sigma";
name = "Yann Hodique";
};
sikmir = {
email = "sikmir@gmail.com";
github = "sikmir";
name = "Nikolay Korotkiy";
};
simonvandel = {
email = "simon.vandel@gmail.com";
github = "simonvandel";

View File

@ -0,0 +1,39 @@
{ stdenv, fetchFromGitHub, qmake, qtbase, protobuf }:
stdenv.mkDerivation rec {
pname = "qtpbfimageplugin";
version = "1.4";
src = fetchFromGitHub {
owner = "tumic0";
repo = "QtPBFImagePlugin";
rev = version;
sha256 = "0d39i7rmhrmm2df49gd47zm37gnz3fmyr6hfc6hhzvk08jb6956r";
};
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase protobuf ];
postPatch = ''
# Fix plugin dir
substituteInPlace pbfplugin.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
# Fix darwin build
substituteInPlace pbfplugin.pro \
--replace '$$PROTOBUF/lib/libprotobuf-lite.a' '${protobuf}/lib/libprotobuf-lite.dylib'
'';
meta = with stdenv.lib; {
description = "Qt image plugin for displaying Mapbox vector tiles";
longDescription = ''
QtPBFImagePlugin is a Qt image plugin that enables applications capable of
displaying raster MBTiles maps or raster XYZ online maps to also display PBF
vector tiles without (almost) any application modifications.
'';
homepage = https://github.com/tumic0/QtPBFImagePlugin;
license = licenses.lgpl3;
maintainers = [ maintainers.sikmir ];
platforms = platforms.unix;
};
}

View File

@ -12992,6 +12992,8 @@ in
qtkeychain = callPackage ../development/libraries/qtkeychain { };
qtpbfimageplugin = libsForQt5.callPackage ../development/libraries/qtpbfimageplugin { };
qtscriptgenerator = callPackage ../development/libraries/qtscriptgenerator { };
quesoglc = callPackage ../development/libraries/quesoglc { };