1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "qtpbfimageplugin"; 11 version = "4.7"; 12 13 src = fetchFromGitHub { 14 owner = "tumic0"; 15 repo = "QtPBFImagePlugin"; 16 tag = version; 17 hash = "sha256-XcHfzBMLCP5ScGz1COpl+kYXzEZATYqvhDfKVS7ona4="; 18 }; 19 20 nativeBuildInputs = [ 21 qmake 22 ]; 23 24 buildInputs = [ 25 qtbase 26 ]; 27 28 dontWrapQtApps = true; 29 30 postPatch = '' 31 # Fix plugin dir 32 substituteInPlace pbfplugin.pro \ 33 --replace-warn "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 34 ''; 35 36 meta = { 37 description = "Qt image plugin for displaying Mapbox vector tiles"; 38 longDescription = '' 39 QtPBFImagePlugin is a Qt image plugin that enables applications capable of 40 displaying raster MBTiles maps or raster XYZ online maps to also display PBF 41 vector tiles without (almost) any application modifications. 42 ''; 43 homepage = "https://github.com/tumic0/QtPBFImagePlugin"; 44 license = lib.licenses.lgpl3Only; 45 maintainers = with lib.maintainers; [ sikmir ]; 46 platforms = lib.platforms.unix; 47 }; 48}