diff --git a/pkgs/development/libraries/maplibre-native-qt/default.nix b/pkgs/development/libraries/maplibre-native-qt/default.nix new file mode 100644 index 000000000000..26bc312d1338 --- /dev/null +++ b/pkgs/development/libraries/maplibre-native-qt/default.nix @@ -0,0 +1,43 @@ +{ + cmake, + fetchFromGitHub, + lib, + qtlocation, + stdenv, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "maplibre-native-qt"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "maplibre"; + repo = "maplibre-native-qt"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-h7PFoGJ5P+k5AEv+y0XReYnPdP/bD4nr/uW9jZ5DCy4="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + qtlocation + ]; + + dontWrapQtApps = true; # library only + + meta = { + changelog = "https://github.com/maplibre/maplibre-native-qt/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + description = "MapLibre Native Qt Bindings and Qt Location Plugin"; + homepage = "https://github.com/maplibre/maplibre-native-qt"; + license = with lib.licenses; [ + bsd2 + gpl3 + lgpl3 + ]; + maintainers = with lib.maintainers; [ dotlambda ]; + platforms = lib.platforms.all; + }; +}) diff --git a/pkgs/top-level/qt6-packages.nix b/pkgs/top-level/qt6-packages.nix index ebf433e667ee..6bd557864b0e 100644 --- a/pkgs/top-level/qt6-packages.nix +++ b/pkgs/top-level/qt6-packages.nix @@ -60,6 +60,8 @@ makeScopeWithSplicing' { qt = qt6; }; + maplibre-native-qt = callPackage ../development/libraries/maplibre-native-qt { }; + qca = pkgs.darwin.apple_sdk_11_0.callPackage ../development/libraries/qca { inherit (qt6) qtbase qt5compat; };