3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/qtpbfimageplugin/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2019-06-19 08:19:44 +01:00
{ stdenv, fetchFromGitHub, qmake, qtbase, protobuf }:
stdenv.mkDerivation rec {
pname = "qtpbfimageplugin";
2020-05-10 06:34:03 +01:00
version = "2.2";
2019-06-19 08:19:44 +01:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "QtPBFImagePlugin";
rev = version;
2020-05-10 06:34:03 +01:00
sha256 = "1w2d33g13vkjasabmcgvhsmfqv3jmwbxhqxm1jnyc7d4nlk4jwmb";
2019-06-19 08:19:44 +01:00
};
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.
'';
2019-10-06 08:52:48 +01:00
homepage = "https://github.com/tumic0/QtPBFImagePlugin";
2019-06-19 08:19:44 +01:00
license = licenses.lgpl3;
2019-10-06 08:52:48 +01:00
maintainers = with maintainers; [ sikmir ];
2019-06-19 08:19:44 +01:00
platforms = platforms.unix;
};
}