nixpkgs/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";
2021-02-17 08:29:19 +00:00
version = "1.26.10";
src = fetchurl {
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
2021-02-17 08:29:19 +00:00
sha256 = "sha256-fABD8GyHXlzx3jwMlMzH9bBYYry82eT7DV0UJ30dq1k=";
};
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 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;
};
}