2019-03-15 11:20:27 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, 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";
|
2019-05-01 07:57:20 +01:00
|
|
|
version = "1.18.2";
|
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";
|
2019-05-01 07:57:20 +01:00
|
|
|
sha256 = "0s4jsfsydp2vykv7lnimalp9i680aas1qcx7zdpjiic64b5g48vp";
|
2014-02-08 19:16:34 +00:00
|
|
|
};
|
|
|
|
|
2017-07-11 10:14:14 +01:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2015-10-13 19:29:54 +01:00
|
|
|
|
2019-03-15 11:20:27 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-udev-base-dir=${placeholder ''out''}/lib/udev"
|
|
|
|
];
|
2014-02-08 19:16:34 +00:00
|
|
|
|
2019-03-15 11:20:27 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgudev
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-02-08 19:16:34 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-03-15 11:20:27 +00:00
|
|
|
homepage = https://www.freedesktop.org/wiki/Software/libmbim/;
|
2015-09-08 19:21:18 +01: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
|
|
|
};
|
|
|
|
}
|