22 lib.meta.availableOn stdenv.hostPlatform gobject-introspection
23 && stdenv.hostPlatform.emulatorAvailable buildPackages,
24 withMan ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
27 stdenv.mkDerivation rec {
34 ] ++ lib.optional withIntrospection "devdoc";
36 src = fetchFromGitLab {
37 domain = "gitlab.freedesktop.org";
38 owner = "mobile-broadband";
41 hash = "sha256-l9ev9ZOWicVNZ/Wj//KNd3NHcefIrLVriqJhEpwWvtQ=";
51 ++ lib.optionals withMan [
54 ++ lib.optionals withIntrospection [
60 ++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
69 ++ lib.optionals withIntrospection [
73 propagatedBuildInputs =
77 ++ lib.optionals withIntrospection [
82 "-Dudevdir=${placeholder "out"}/lib/udev"
83 (lib.mesonBool "gtk_doc" withIntrospection)
84 (lib.mesonBool "introspection" withIntrospection)
85 (lib.mesonBool "man" withMan)
86 (lib.mesonBool "qrtr" withIntrospection)
87 (lib.mesonBool "udev" withIntrospection)
94 build-aux/qmi-codegen/qmi-codegen
98 homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
99 description = "Modem protocol helper library";
100 maintainers = teams.freedesktop.members;
101 platforms = platforms.linux;
102 license = with licenses; [
108 changelog = "https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/${version}/NEWS";