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