Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 cmake, 3 fetchFromGitHub, 4 lib, 5 maplibre-native-qt, 6 qtbase, 7 qtpositioning, 8 stdenv, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "mapbox-gl-qml"; 13 version = "3.0.0"; 14 15 src = fetchFromGitHub { 16 owner = "rinigus"; 17 repo = "mapbox-gl-qml"; 18 tag = finalAttrs.version; 19 hash = "sha256-csk3Uo+AdP1R/T/9gWyWmYFIKuen2jy8wYN3GJznyRE="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 ]; 25 26 cmakeFlags = [ 27 (lib.cmakeFeature "QT_INSTALL_QML" "${placeholder "out"}/${qtbase.qtQmlPrefix}") 28 ]; 29 30 buildInputs = [ 31 maplibre-native-qt 32 qtpositioning 33 ]; 34 35 dontWrapQtApps = true; # library only 36 37 meta = { 38 changelog = "https://github.com/rinigus/mapbox-gl-qml/releases/tag/${finalAttrs.version}"; 39 description = "Unofficial Mapbox GL Native bindings for Qt QML"; 40 homepage = "https://github.com/rinigus/mapbox-gl-qml"; 41 license = lib.licenses.lgpl3Only; 42 maintainers = with lib.maintainers; [ 43 Thra11 44 dotlambda 45 ]; 46 platforms = lib.platforms.linux; 47 }; 48})