From 1bbc9c2d23af05b4875edabef7e997aab9eac866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 26 Oct 2024 19:39:02 -0700 Subject: [PATCH] qt6Packages.maplibre-native-qt: init at 3.0.0 --- .../libraries/maplibre-native-qt/default.nix | 43 +++++++++++++++++++ pkgs/top-level/qt6-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/libraries/maplibre-native-qt/default.nix 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; };