nixos: add support for Ubuntu Fan Networking

This provides support for Ubuntu Fan Networking [1].

This includes:

* The fanctl package, and a corresponding NixOS service.
* iproute patches.
* kernel patches.

closes #9188

1: https://wiki.ubuntu.com/FanNetworking
This commit is contained in:
Charles Strahan
2015-08-13 14:27:14 -04:00
parent 18597ff658
commit c1ee8fefd4
9 changed files with 1523 additions and 1 deletions
+5 -1
View File
@@ -1,4 +1,6 @@
{ fetchurl, stdenv, flex, bison, db, iptables, pkgconfig }:
{ fetchurl, stdenv, lib, flex, bison, db, iptables, pkgconfig
, enableFan ? false
}:
stdenv.mkDerivation rec {
name = "iproute2-4.1.1";
@@ -8,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0vz6m2k6hdrjlg4x0r3cd75lg9ysmndbsp35pm8494zvksc7l1vk";
};
patches = lib.optionals enableFan [ ./ubuntu-fan.patch ];
preConfigure = ''
patchShebangs ./configure
sed -e '/ARPDDIR/d' -i Makefile