nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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