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

42 lines
901 B
Nix
Raw Normal View History

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