2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchzip
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/snapshot/ofono-${version}.tar.gz";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-mnh0qzmgPDfimN/M33HntYj90Xcgc/uF8tKbzeQV1Yg=";
|
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-08-25 08:27:29 +00:00
|
|
|
"--sysconfdir=/etc"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
installFlags = [
|
2021-08-25 08:27:29 +00:00
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
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";
|
2022-02-20 05:27:41 +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;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|