2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-08-12 00:14:34 +00:00
|
|
|
, fetchgit
|
|
|
|
, autoreconfHook
|
2021-01-17 03:51:22 +00:00
|
|
|
, pkg-config
|
2018-08-12 00:14:34 +00:00
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, ell
|
|
|
|
, systemd
|
|
|
|
, bluez
|
|
|
|
, mobile-broadband-provider-info
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ofono";
|
2022-09-17 18:20:25 +00:00
|
|
|
version = "2.0";
|
2018-08-12 00:14:34 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
2023-01-27 20:10:36 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
|
2018-08-12 00:14:34 +00:00
|
|
|
rev = version;
|
2022-09-17 18:20:25 +00:00
|
|
|
sha256 = "sha256-T8rfReruvHGQCN9IDGIrFCoNjFKKMnUGPKzxo2HTZFQ=";
|
2018-08-12 00:14:34 +00:00
|
|
|
};
|
|
|
|
|
2019-08-23 16:54:26 +00:00
|
|
|
patches = [
|
|
|
|
./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch
|
|
|
|
];
|
|
|
|
|
2018-08-12 00:14:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config
|
2018-08-12 00:14:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
dbus
|
|
|
|
ell
|
|
|
|
systemd
|
|
|
|
bluez
|
|
|
|
mobile-broadband-provider-info
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
|
|
|
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
|
2018-08-12 00:14:34 +00:00
|
|
|
"--enable-external-ell"
|
2021-08-23 12:08:41 +00:00
|
|
|
"--sysconfdir=/etc"
|
2018-08-12 00:14:34 +00:00
|
|
|
];
|
|
|
|
|
2021-08-15 06:48:35 +00:00
|
|
|
installFlags = [
|
2021-08-23 12:08:41 +00:00
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2021-08-15 06:48:35 +00:00
|
|
|
];
|
|
|
|
|
2021-01-05 15:29:55 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
enableParallelChecking = false;
|
|
|
|
|
2018-08-12 00:14:34 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-12 00:14:34 +00:00
|
|
|
description = "Infrastructure for building mobile telephony (GSM/UMTS) applications";
|
2022-02-15 12:21:46 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
|
|
|
|
changelog = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/plain/ChangeLog?h=${version}";
|
|
|
|
license = licenses.gpl2Only;
|
2018-08-12 00:14:34 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|