Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / mapbox-gl-qml / default.nix
blob1d068a90d3b318dcd8a6aa87b5b512beffc2abe1
1 { lib
2 , mkDerivation
3 , fetchFromGitHub
4 , cmake
5 , pkg-config
6 , curl
7 , qtbase
8 , qtlocation
9 , maplibre-gl-native
12 mkDerivation rec {
13   pname = "mapbox-gl-qml";
14   version = "2.1.1";
16   src = fetchFromGitHub {
17     owner = "rinigus";
18     repo = "mapbox-gl-qml";
19     rev = version;
20     hash = "sha256-zZcD85nOZZ067FRvSuzE8lr2gyuVxpcZGp44D4ayc3Q=";
21   };
23   nativeBuildInputs = [ cmake pkg-config ];
24   buildInputs = [ curl qtlocation maplibre-gl-native ];
26   postPatch = ''
27     substituteInPlace src/CMakeLists.txt \
28       --replace ' ''${QT_INSTALL_QML}' " $out/${qtbase.qtQmlPrefix}"
29   '';
31   meta = with lib; {
32     description = "Unofficial Mapbox GL Native bindings for Qt QML";
33     homepage = "https://github.com/rinigus/mapbox-gl-qml";
34     license = licenses.lgpl3Only;
35     maintainers = with maintainers; [ Thra11 dotlambda ];
36     platforms = platforms.linux;
37   };