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