nixpkgs-suyu/pkgs/development/libraries/libmbim/default.nix

49 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, pkg-config
, glib
, python3
, systemd
, libgudev
, withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform
, gobject-introspection
}:
2014-02-08 20:16:34 +01:00
stdenv.mkDerivation rec {
2019-03-15 12:20:27 +01:00
pname = "libmbim";
2021-06-04 15:20:57 +02:00
version = "1.24.8";
2014-02-08 20:16:34 +01:00
src = fetchurl {
2019-03-15 12:20:27 +01:00
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
2021-06-04 15:20:57 +02:00
sha256 = "sha256-AlkHNhY//xDlcyGR/MwbmSCWlhbdxZYToAMFKhFqPCU=";
2014-02-08 20:16:34 +01:00
};
outputs = [ "out" "dev" "man" ];
2015-10-13 20:29:54 +02:00
2019-03-15 12:20:27 +01:00
configureFlags = [
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
(lib.enableFeature withIntrospection "introspection")
2019-03-15 12:20:27 +01:00
];
2014-02-08 20:16:34 +01:00
2019-03-15 12:20:27 +01:00
nativeBuildInputs = [
pkg-config
2019-03-15 12:20:27 +01:00
python3
gobject-introspection
2019-03-15 12:20:27 +01:00
];
buildInputs = [
glib
libgudev
systemd
];
doCheck = true;
2014-02-08 20:16:34 +01:00
meta = with lib; {
homepage = "https://www.freedesktop.org/wiki/Software/libmbim/";
2015-09-08 20:21:18 +02:00
description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol";
2014-02-08 20:16:34 +01:00
platforms = platforms.linux;
2015-03-26 20:44:17 +01:00
license = licenses.gpl2;
2014-02-08 20:16:34 +01:00
};
}