nixpkgs/pkgs/development/libraries/libqmi/default.nix
2021-01-22 21:32:38 +01:00

42 lines
898 B
Nix

{ lib, stdenv, fetchurl, pkg-config, gobject-introspection, glib, python3, libgudev, libmbim }:
stdenv.mkDerivation rec {
pname = "libqmi";
version = "1.26.8";
src = fetchurl {
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
sha256 = "sha256-73bclasKBjIaG9Jeh1SJy6Esn2YRl0ygE1zwZ7sgyWA=";
};
outputs = [ "out" "dev" "devdoc" ];
configureFlags = [
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
"--enable-introspection"
];
nativeBuildInputs = [
pkg-config
gobject-introspection
python3
];
buildInputs = [
glib
libgudev
libmbim
];
enableParallelBuilding = true;
doCheck = true;
meta = with lib; {
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
description = "Modem protocol helper library";
platforms = platforms.linux;
license = licenses.gpl2;
};
}