lol
1{ lib, stdenv
2, fetchgit
3, autoreconfHook
4, pkg-config
5, glib
6, dbus
7, ell
8, systemd
9, bluez
10, mobile-broadband-provider-info
11}:
12
13stdenv.mkDerivation rec {
14 pname = "ofono";
15 version = "2.1";
16
17 outputs = [ "out" "dev" ];
18
19 src = fetchgit {
20 url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
21 rev = version;
22 sha256 = "sha256-GxQfh/ps5oM9G6B1EVgnjo8LqHD1hMqdnju1PCQq3kA=";
23 };
24
25 patches = [
26 ./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch
27 ];
28
29 nativeBuildInputs = [
30 autoreconfHook
31 pkg-config
32 ];
33
34 buildInputs = [
35 glib
36 dbus
37 ell
38 systemd
39 bluez
40 mobile-broadband-provider-info
41 ];
42
43 configureFlags = [
44 "--with-dbusconfdir=${placeholder "out"}/share"
45 "--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
46 "--enable-external-ell"
47 "--sysconfdir=/etc"
48 ];
49
50 installFlags = [
51 "sysconfdir=${placeholder "out"}/etc"
52 ];
53
54 enableParallelBuilding = true;
55 enableParallelChecking = false;
56
57 doCheck = true;
58
59 meta = with lib; {
60 description = "Infrastructure for building mobile telephony (GSM/UMTS) applications";
61 homepage = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
62 changelog = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/plain/ChangeLog?h=${version}";
63 license = licenses.gpl2Only;
64 maintainers = with maintainers; [ ];
65 platforms = platforms.linux;
66 };
67}