nixpkgs-suyu/pkgs/tools/networking/connman/default.nix
devhell 10d5d9acf4 connman: 1.28 -> 1.30
Built fine, couldn't test though as I don't have a laptop around me at
the moment.

From the changelog:
```
Fix issue with pending DNS request during server change.
Fix issue with empty strings in nameservers configuration.
Fix issue with time servers during IP configuration change.
Fix issue with 4-way handshake during roaming.
Fix issue with open WiFi networks security.
Fix issue with support for WiFi AnonymousIdentity.
Fix issue with memory leak and DHCPv6 DUID handling.
Fix issue with DHCP client and P2P interaction.
Fix issue with handling provision file updates.
Fix issue with VPN state updates.
Disable 6to4 support by default.
```
2015-08-31 19:19:14 +01: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.30";
src = fetchgit {
url = "git://git.kernel.org/pub/scm/network/connman/connman.git";
rev = "refs/tags/${version}";
sha256 = "715474351e22b52334d37c146fd5eb87d692be8501d8dac33a0e330437235295";
};
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;
};
}