depot/third_party/nixpkgs/pkgs/development/libraries/mapbox-gl-qml/default.nix

48 lines
1 KiB
Nix

{
cmake,
fetchFromGitHub,
lib,
maplibre-native-qt,
qtbase,
qtpositioning,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mapbox-gl-qml";
version = "3.0.0";
src = fetchFromGitHub {
owner = "rinigus";
repo = "mapbox-gl-qml";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-csk3Uo+AdP1R/T/9gWyWmYFIKuen2jy8wYN3GJznyRE=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
(lib.cmakeFeature "QT_INSTALL_QML" "${placeholder "out"}/${qtbase.qtQmlPrefix}")
];
buildInputs = [
maplibre-native-qt
qtpositioning
];
dontWrapQtApps = true; # library only
meta = {
changelog = "https://github.com/rinigus/mapbox-gl-qml/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
description = "Unofficial Mapbox GL Native bindings for Qt QML";
homepage = "https://github.com/rinigus/mapbox-gl-qml";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [
Thra11
dotlambda
];
platforms = lib.platforms.linux;
};
})