nixpkgs-suyu/pkgs/development/libraries/libqmi/default.nix

42 lines
899 B
Nix
Raw Normal View History

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