2020-07-06 02:34:26 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, python3
|
|
|
|
, systemd
|
|
|
|
, libgudev
|
|
|
|
}:
|
2014-02-08 19:16:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 11:20:27 +00:00
|
|
|
pname = "libmbim";
|
2020-11-02 19:59:51 +00:00
|
|
|
version = "1.24.4";
|
2014-02-08 19:16:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-15 11:20:27 +00:00
|
|
|
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
|
2020-11-02 19:59:51 +00:00
|
|
|
sha256 = "11djb1d8w9ms07aklfm3pskjw9rnff4p4n3snanschv22zk8wj6x";
|
2014-02-08 19:16:34 +00:00
|
|
|
};
|
|
|
|
|
2017-07-11 09:14:14 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2015-10-13 18:29:54 +00:00
|
|
|
|
2019-03-15 11:20:27 +00:00
|
|
|
configureFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
2020-07-06 02:34:26 +00:00
|
|
|
"--enable-introspection"
|
2019-03-15 11:20:27 +00:00
|
|
|
];
|
2014-02-08 19:16:34 +00:00
|
|
|
|
2019-03-15 11:20:27 +00:00
|
|
|
nativeBuildInputs = [
|
2020-07-06 02:34:26 +00:00
|
|
|
pkg-config
|
2019-03-15 11:20:27 +00:00
|
|
|
python3
|
2020-07-06 02:34:26 +00:00
|
|
|
gobject-introspection
|
2019-03-15 11:20:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgudev
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-02-08 19:16:34 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/libmbim/";
|
2015-09-08 18:21:18 +00:00
|
|
|
description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol";
|
2014-02-08 19:16:34 +00:00
|
|
|
platforms = platforms.linux;
|
2015-03-26 19:44:17 +00:00
|
|
|
license = licenses.gpl2;
|
2014-02-08 19:16:34 +00:00
|
|
|
};
|
|
|
|
}
|