7 , gobject-introspection
20 , withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
21 , withMan ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
24 stdenv.mkDerivation rec {
28 outputs = [ "out" "dev" ]
29 ++ lib.optional withIntrospection "devdoc";
31 src = fetchFromGitLab {
32 domain = "gitlab.freedesktop.org";
33 owner = "mobile-broadband";
36 hash = "sha256-cczGvoD+2+G6uiAt0Iv1BO4/FqzO9bkqhFsEwOfp7qw=";
44 ] ++ lib.optionals withMan [
46 ] ++ lib.optionals withIntrospection [
51 ] ++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
58 ] ++ lib.optionals withIntrospection [
62 propagatedBuildInputs = [
64 ] ++ lib.optionals withIntrospection [
69 "-Dudevdir=${placeholder "out"}/lib/udev"
70 (lib.mesonBool "gtk_doc" withIntrospection)
71 (lib.mesonBool "introspection" withIntrospection)
72 (lib.mesonBool "man" withMan)
73 (lib.mesonBool "qrtr" withIntrospection)
74 (lib.mesonBool "udev" withIntrospection)
81 build-aux/qmi-codegen/qmi-codegen
85 homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
86 description = "Modem protocol helper library";
87 maintainers = teams.freedesktop.members;
88 platforms = platforms.linux;
89 license = with licenses; [
95 changelog = "https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/${version}/NEWS";