mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
1edd898ffd
fix build with glib 2.62
38 lines
867 B
Nix
38 lines
867 B
Nix
{ stdenv, fetchurl, pkgconfig, glib, python3, systemd, libgudev }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmbim";
|
|
version = "1.20.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
|
|
sha256 = "0rm8j4zh9gnb3yi324cnxy91gdimc1vg5gv1kxc2m5lymb3wdxrc";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|