2021-03-06 22:36:32 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, glib
|
|
|
|
, python3
|
|
|
|
, libgudev
|
|
|
|
, libmbim
|
|
|
|
, libqrtr-glib
|
|
|
|
}:
|
2014-02-08 19:15:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 11:28:12 +00:00
|
|
|
pname = "libqmi";
|
2022-07-23 18:30:52 +00:00
|
|
|
version = "1.30.8";
|
2021-03-06 22:36:32 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2014-02-08 19:15:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-15 11:28:12 +00:00
|
|
|
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
|
2022-07-23 18:30:52 +00:00
|
|
|
sha256 = "sha256-hiSCzp460L1l0mQzTuMRzblLnfKGO1txNjCbQbisGZA=";
|
2014-02-08 19:15:12 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 11:28:12 +00:00
|
|
|
nativeBuildInputs = [
|
2020-06-17 14:34:59 +00:00
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
2019-03-15 11:28:12 +00:00
|
|
|
python3
|
2021-03-06 22:36:32 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2019-03-15 11:28:12 +00:00
|
|
|
];
|
2017-05-19 12:05:34 +00:00
|
|
|
|
2019-03-15 11:28:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgudev
|
|
|
|
libmbim
|
2021-03-12 18:45:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
2021-03-06 22:36:32 +00:00
|
|
|
libqrtr-glib
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
2022-06-02 19:09:41 +00:00
|
|
|
"--enable-gtk-doc=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}"
|
|
|
|
"--enable-introspection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}"
|
2019-03-15 11:28:12 +00:00
|
|
|
];
|
|
|
|
|
2020-04-19 11:46:05 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-03-15 11:28:12 +00:00
|
|
|
doCheck = true;
|
2014-02-08 19:15:12 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-23 22:54:01 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
|
2014-02-08 19:15:12 +00:00
|
|
|
description = "Modem protocol helper library";
|
2021-03-06 22:36:32 +00:00
|
|
|
maintainers = teams.freedesktop.members;
|
2014-02-08 19:15:12 +00:00
|
|
|
platforms = platforms.linux;
|
2021-03-06 22:36:32 +00:00
|
|
|
license = with licenses; [
|
|
|
|
# Library
|
|
|
|
lgpl2Plus
|
|
|
|
# Tools
|
|
|
|
gpl2Plus
|
|
|
|
];
|
2021-08-05 16:36:08 +00:00
|
|
|
changelog = "https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/${version}/NEWS";
|
2014-02-08 19:15:12 +00:00
|
|
|
};
|
|
|
|
}
|