mapbox-gl-qml: init at 1.7.5
This commit is contained in:
parent
e9fe70c13e
commit
fccc5ba324
2 changed files with 34 additions and 0 deletions
32
pkgs/development/libraries/mapbox-gl-qml/default.nix
Normal file
32
pkgs/development/libraries/mapbox-gl-qml/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, qmake, qtbase, qtlocation, mapbox-gl-native }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "mapbox-gl-qml";
|
||||
version = "1.7.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rinigus";
|
||||
repo = "mapbox-gl-qml";
|
||||
rev = version;
|
||||
sha256 = "1izwkfqn8jl83vihcxl2b159sqmkn1amxf92zw0h6psls2g9xhwx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ qmake ];
|
||||
buildInputs = [ qtlocation mapbox-gl-native ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace mapbox-gl-qml.pro \
|
||||
--replace '$$[QT_INSTALL_QML]' $out'/${qtbase.qtQmlPrefix}'
|
||||
'';
|
||||
|
||||
# Package expects qt5 subdirectory of mapbox-gl-native to be in the include path
|
||||
NIX_CFLAGS_COMPILE = "-I${mapbox-gl-native}/include/qt5";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unofficial Mapbox GL Native bindings for Qt QML";
|
||||
homepage = "https://github.com/rinigus/mapbox-gl-qml";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = [ maintainers.Thra11 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -15859,6 +15859,8 @@ in
|
|||
|
||||
mapbox-gl-native = libsForQt5.callPackage ../development/libraries/mapbox-gl-native { };
|
||||
|
||||
mapbox-gl-qml = libsForQt5.callPackage ../development/libraries/mapbox-gl-qml { };
|
||||
|
||||
mapnik = callPackage ../development/libraries/mapnik { };
|
||||
|
||||
marisa = callPackage ../development/libraries/marisa {};
|
||||
|
|
Loading…
Reference in a new issue