2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, glib
|
|
|
|
, python3
|
|
|
|
, libgudev
|
|
|
|
, libmbim
|
|
|
|
, libqrtr-glib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libqmi";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.28.4";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-OxTNKrUiGnrbs5/tFu9pdTjqHHkwiCGtLRm1BeHarqA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
2021-03-19 17:17:44 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libgudev
|
|
|
|
libmbim
|
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libqrtr-glib
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
"--enable-introspection"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
|
|
|
|
description = "Modem protocol helper library";
|
2021-03-19 17:17:44 +00:00
|
|
|
maintainers = teams.freedesktop.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-03-19 17:17:44 +00:00
|
|
|
license = with licenses; [
|
|
|
|
# Library
|
|
|
|
lgpl2Plus
|
|
|
|
# Tools
|
|
|
|
gpl2Plus
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|