mapbox-gl-native: init at 2020.06.07
This commit is contained in:
parent
76b4a48399
commit
e9fe70c13e
33
pkgs/development/libraries/mapbox-gl-native/default.nix
Normal file
33
pkgs/development/libraries/mapbox-gl-native/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config
|
||||
, qtbase, curl, libuv, glfw3 }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "mapbox-gl-native";
|
||||
version = "2020.06.07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mapbox";
|
||||
repo = "mapbox-gl-native";
|
||||
rev = "e18467d755f470b26f61f6893eddd76ecf0816e6";
|
||||
sha256 = "1x271gg9h81jpi70pv63i6lsa1zg6bzja9mbz7bsa4s02fpqy7wh";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ curl libuv glfw3 qtbase ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DMBGL_WITH_QT=ON"
|
||||
"-DMBGL_WITH_QT_LIB_ONLY=ON"
|
||||
"-DMBGL_WITH_QT_HEADLESS=OFF"
|
||||
];
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -Wno-error=type-limits";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL";
|
||||
homepage = "https://mapbox.com/mobile";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.Thra11 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -15857,6 +15857,8 @@ in
|
||||
|
||||
opencl-clang = callPackage ../development/libraries/opencl-clang { };
|
||||
|
||||
mapbox-gl-native = libsForQt5.callPackage ../development/libraries/mapbox-gl-native { };
|
||||
|
||||
mapnik = callPackage ../development/libraries/mapnik { };
|
||||
|
||||
marisa = callPackage ../development/libraries/marisa {};
|
||||
|
Loading…
Reference in New Issue
Block a user