nixpkgs-suyu/pkgs/tools/networking/connman/default.nix
devhell 968571af95 connman: 1.26 -> 1.28
ConnMan 1.28 was released Sunday, February 1st, 2015.

Upgrading ConnMan is strongly encouraged as this release fixes an issue
with DHCPv6 retransmission timer calculation that causes system load to
jump to 100%. In addition, all WiFi P2P issues encountered with Miracast
have been addressed thanks to persistent the reporting and fixing by
Jussi Kukkonen, Tomasz Bursztyka and Jukka Rissanen.

ConnMan no longer hands off foreground autoscanning to wpa_supplicant as
it causes issues when finding hidden WiFi networks. As a result, the
previously recommended build time option has be removed from the
documentation. wpa_supplicant can still be built with autoscan enabled
but as ConnMan no longer enables it run time the issue is mitigated.

Other changes and fixes include:

  * Several fixes for handling IPv6 contexts via oFono (Pasi Sjöholm)
  * Fix memory deallocation in exit code paths (Hannu Mallat)
  * Use OPEN auth_alg for wpa_supplicant open WiFi networks (Slava Monich)
  * A WiFi Access Point with unknown strength now has a proper minimum value
    which translates to a service 'Strenght' property of 30 (Patrik Flykt)
  * Fix byte order in DHCP server identifier (Jukka Rissanen)
  * Properly cancel an ongoing service connect if the Agent exits
    (Patrik Flykt)
2015-02-03 16:12:47 +00:00

60 lines
2 KiB
Nix

{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, openconnect, file,
openvpn, vpnc, glib, dbus, iptables, gnutls, policykit, polkit,
wpa_supplicant, readline6, pptp, ppp, tree }:
stdenv.mkDerivation rec {
name = "connman-${version}";
version = "1.28";
src = fetchgit {
url = "git://git.kernel.org/pub/scm/network/connman/connman.git";
rev = "refs/tags/${version}";
sha256 = "13c374bfj7dzlx7zvnnigmk0ck5cy601aqi18n77mcrq9yyxw5y9";
};
buildInputs = [ autoconf automake libtool pkgconfig openconnect polkit
file openvpn vpnc glib dbus iptables gnutls policykit
wpa_supplicant readline6 pptp ppp tree ];
preConfigure = ''
export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant
./bootstrap
sed -i "s/\/usr\/bin\/file/file/g" ./configure
substituteInPlace configure --replace /usr/sbin/pptp ${pptp}/sbin/pptp
substituteInPlace configure --replace /usr/sbin/pppd ${ppp}/sbin/pppd
'';
configureFlags = [
"--sysconfdir=\${out}/etc"
"--localstatedir=/var"
"--with-dbusconfdir=\${out}/etc"
"--with-dbusdatadir=\${out}/usr/share"
"--disable-maintainer-mode"
"--enable-openconnect=builtin"
"--with-openconnect=${openconnect}/sbin/openconnect"
"--enable-openvpn=builtin"
"--with-openvpn=${openvpn}/sbin/openvpn"
"--enable-vpnc=builtin"
"--with-vpnc=${vpnc}/sbin/vpnc"
"--enable-session-policy-local=builtin"
"--enable-client"
"--enable-bluetooth"
"--enable-wifi"
"--enable-polkit"
"--enable-tools"
"--enable-datafiles"
"--enable-pptp"
];
postInstall = ''
cp ./client/connmanctl $out/sbin/connmanctl
'';
meta = {
description = "Provides a daemon for managing internet connections";
homepage = "https://connman.net/";
maintainers = [ stdenv.lib.maintainers.matejc ];
# tested only on linux, might work on others also
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
};
}