Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 48 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "qtpbfimageplugin"; 11 version = "4.0"; 12 13 src = fetchFromGitHub { 14 owner = "tumic0"; 15 repo = "QtPBFImagePlugin"; 16 tag = version; 17 hash = "sha256-17mQ7aTpZhmsoAHhnueHSRTvCIHRcpWwZHZM+YUdeps="; 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 "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 34 ''; 35 36 meta = with lib; { 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 = licenses.lgpl3Only; 45 maintainers = with maintainers; [ sikmir ]; 46 platforms = platforms.unix; 47 }; 48}