nixpkgs/pkgs/development/libraries/libmbim/default.nix
2019-03-15 13:37:30 -04:00

38 lines
869 B
Nix

{ stdenv, fetchurl, pkgconfig, glib, python3, systemd, libgudev }:
stdenv.mkDerivation rec {
pname = "libmbim";
version = "1.18.0";
src = fetchurl {
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
sha256 = "10mjjy860aakfd3h1yaj9l1jw816amrpwmyqlx37j21xv0l03x3c";
};
outputs = [ "out" "dev" "man" ];
configureFlags = [
"--with-udev-base-dir=${placeholder ''out''}/lib/udev"
];
nativeBuildInputs = [
pkgconfig
python3
];
buildInputs = [
glib
libgudev
systemd
];
doCheck = true;
meta = with stdenv.lib; {
homepage = https://www.freedesktop.org/wiki/Software/libmbim/;
description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol";
platforms = platforms.linux;
license = licenses.gpl2;
};
}