nixpkgs/pkgs/development/libraries/qtpbfimageplugin/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, qmake, qtbase, protobuf }:
2019-06-19 07:19:44 +00:00
stdenv.mkDerivation rec {
pname = "qtpbfimageplugin";
2020-12-31 19:11:23 +00:00
version = "2.3";
2019-06-19 07:19:44 +00:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "QtPBFImagePlugin";
rev = version;
2020-12-31 19:11:23 +00:00
sha256 = "063agzcrcihasqqk2yqxqxg9xknjs99y6vx3n1v7md7dqnfv4iva";
2019-06-19 07:19:44 +00:00
};
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase protobuf ];
dontWrapQtApps = true;
2019-06-19 07:19:44 +00:00
postPatch = ''
# Fix plugin dir
substituteInPlace pbfplugin.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
'' + lib.optionalString stdenv.isDarwin ''
2019-06-19 07:19:44 +00:00
# Fix darwin build
substituteInPlace pbfplugin.pro \
--replace '$$PROTOBUF/lib/libprotobuf-lite.a' '${protobuf}/lib/libprotobuf-lite.dylib'
'';
meta = with lib; {
2019-06-19 07:19:44 +00:00
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 07:52:48 +00:00
homepage = "https://github.com/tumic0/QtPBFImagePlugin";
2020-12-31 19:11:23 +00:00
license = licenses.lgpl3Only;
2019-10-06 07:52:48 +00:00
maintainers = with maintainers; [ sikmir ];
2019-06-19 07:19:44 +00:00
platforms = platforms.unix;
};
}