2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchgit
|
|
|
|
, autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, ell
|
|
|
|
, systemd
|
|
|
|
, bluez
|
|
|
|
, mobile-broadband-provider-info
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ofono";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.32";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/network/ofono/ofono.git";
|
|
|
|
rev = version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-bJ7Qgau5soPiptrhcMZ8rWxfprRCTeR7OjQ5HZQ9hbc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
dbus
|
|
|
|
ell
|
|
|
|
systemd
|
|
|
|
bluez
|
|
|
|
mobile-broadband-provider-info
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
|
|
|
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
"--enable-external-ell"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm -r $out/etc/ofono
|
|
|
|
ln -s /etc/ofono $out/etc/ofono
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
enableParallelChecking = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Infrastructure for building mobile telephony (GSM/UMTS) applications";
|
|
|
|
homepage = "https://01.org/ofono";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|