lol

libsForQt5.maplibre-gl-native: init at unstable-2022-04-07

authored by

Robert Schütz and committed by
Robert Schütz
492cb7ef 7c01ec62

+68
+66
pkgs/development/libraries/maplibre-gl-native/default.nix
··· 1 + { lib 2 + , mkDerivation 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + , pkg-config 7 + , qtbase 8 + , curl 9 + , libuv 10 + , glfw3 11 + , rapidjson 12 + }: 13 + 14 + mkDerivation rec { 15 + pname = "maplibre-gl-native"; 16 + version = "unstable-2022-04-07"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "maplibre"; 20 + repo = "maplibre-gl-native"; 21 + rev = "225f8a4bfe7ad30fd59d693c1fb3ca0ba70d2806"; 22 + fetchSubmodules = true; 23 + hash = "sha256-NLtpi+bDLTHlnzMZ4YFQyF5B1xt9lzHyZPvEQLlBAnY="; 24 + }; 25 + 26 + patches = [ 27 + (fetchpatch { 28 + name = "skip-license-check.patch"; 29 + url = "https://git.alpinelinux.org/aports/plain/testing/mapbox-gl-native/0002-skip-license-check.patch?id=6751a93dca26b0b3ceec9eb151272253a2fe497e"; 30 + sha256 = "1yybwzxbvn0lqb1br1fyg7763p2h117s6mkmywkl4l7qg9daa7ba"; 31 + }) 32 + ]; 33 + 34 + postPatch = '' 35 + # don't use vendored rapidjson 36 + rm -r vendor/mapbox-base/extras/rapidjson 37 + ''; 38 + 39 + nativeBuildInputs = [ 40 + cmake 41 + pkg-config 42 + ]; 43 + 44 + buildInputs = [ 45 + curl 46 + libuv 47 + glfw3 48 + qtbase 49 + rapidjson 50 + ]; 51 + 52 + cmakeFlags = [ 53 + "-DMBGL_WITH_QT=ON" 54 + "-DMBGL_WITH_QT_LIB_ONLY=ON" 55 + "-DMBGL_WITH_QT_HEADLESS=OFF" 56 + ]; 57 + 58 + meta = with lib; { 59 + description = "Open-source alternative to Mapbox GL Native"; 60 + homepage = "https://maplibre.org/"; 61 + license = licenses.bsd2; 62 + maintainers = with maintainers; [ dotlambda ]; 63 + platforms = platforms.linux; 64 + broken = lib.versionOlder qtbase.version "5.15"; 65 + }; 66 + }
+2
pkgs/top-level/qt5-packages.nix
··· 142 142 143 143 mapbox-gl-qml = libsForQt5.callPackage ../development/libraries/mapbox-gl-qml { }; 144 144 145 + maplibre-gl-native = callPackage ../development/libraries/maplibre-gl-native { }; 146 + 145 147 mauikit = callPackage ../development/libraries/mauikit { }; 146 148 147 149 mauikit-filebrowsing = callPackage ../development/libraries/mauikit-filebrowsing { };