2020-06-17 07:34:59 -07:00
|
|
|
{ stdenv, fetchurl, pkg-config, gobject-introspection, glib, python3, libgudev, libmbim }:
|
2014-02-08 11:15:12 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 04:28:12 -07:00
|
|
|
pname = "libqmi";
|
2020-07-05 06:05:54 -07:00
|
|
|
version = "1.26.0";
|
2014-02-08 11:15:12 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-15 04:28:12 -07:00
|
|
|
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
|
2020-07-05 06:05:54 -07:00
|
|
|
sha256 = "0h3fzmjlla7ib9wn4rv98bm40y2k28jcl29da4hjwyaqmvh2j13z";
|
2014-02-08 11:15:12 -08:00
|
|
|
};
|
|
|
|
|
2016-09-01 02:07:23 -07:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-13 11:35:10 -07:00
|
|
|
|
2019-03-15 04:28:12 -07:00
|
|
|
configureFlags = [
|
2019-09-03 09:38:57 -07:00
|
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
2020-06-17 07:34:59 -07:00
|
|
|
"--enable-introspection"
|
2019-03-15 04:28:12 -07:00
|
|
|
];
|
2015-01-08 01:26:49 -08:00
|
|
|
|
2019-03-15 04:28:12 -07:00
|
|
|
nativeBuildInputs = [
|
2020-06-17 07:34:59 -07:00
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
2019-03-15 04:28:12 -07:00
|
|
|
python3
|
|
|
|
];
|
2017-05-19 05:05:34 -07:00
|
|
|
|
2019-03-15 04:28:12 -07:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgudev
|
|
|
|
libmbim
|
|
|
|
];
|
|
|
|
|
2020-04-19 04:46:05 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-03-15 04:28:12 -07:00
|
|
|
doCheck = true;
|
2014-02-08 11:15:12 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-02-23 14:54:01 -08:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
|
2014-02-08 11:15:12 -08:00
|
|
|
description = "Modem protocol helper library";
|
|
|
|
platforms = platforms.linux;
|
2015-03-26 12:39:05 -07:00
|
|
|
license = licenses.gpl2;
|
2014-02-08 11:15:12 -08:00
|
|
|
};
|
|
|
|
}
|