Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
qmake,
qtbase,
}:
stdenv.mkDerivation rec {
pname = "qtpbfimageplugin";
version = "5.0";
src = fetchFromGitHub {
owner = "tumic0";
repo = "QtPBFImagePlugin";
tag = version;
hash = "sha256-ruaYJ3onc1banwgpZ0Gh7n8fZ9t7DQ6D6gshXH2IXfc=";
};
nativeBuildInputs = [
qmake
];
buildInputs = [
qtbase
];
dontWrapQtApps = true;
postPatch = ''
# Fix plugin dir
substituteInPlace pbfplugin.pro \
--replace-warn "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
'';
meta = {
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 = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ sikmir ];
platforms = lib.platforms.unix;
};
}