mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
e59d302e25
As per https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/blob/master/meson.build#L7.
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, glib
|
|
, python3
|
|
, systemd
|
|
, withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform
|
|
, gobject-introspection
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmbim";
|
|
version = "1.26.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
|
|
sha256 = "1kqkx139z62w391bz6lwmcjg7v12jxlcm7hj88222xrcn8k0j7qy";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
configureFlags = [
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
|
(lib.enableFeature withIntrospection "introspection")
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
python3
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
systemd
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with 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.gpl2Plus;
|
|
};
|
|
}
|