2017-02-21 07:24:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, kernel }:
|
|
|
|
|
2017-02-28 13:40:04 +00:00
|
|
|
assert stdenv.lib.versionAtLeast kernel.version "4.4";
|
|
|
|
|
2017-02-21 07:24:35 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-08-28 20:55:14 +00:00
|
|
|
name = "sch_cake-2017-07-16";
|
2017-02-21 07:24:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtaht";
|
|
|
|
repo = "sch_cake";
|
2017-08-28 20:55:14 +00:00
|
|
|
rev = "e641a56f27b6848736028f87eda65ac3df9f99f7";
|
|
|
|
sha256 = "08582jy01j32b3mj8hf6m8687qrcz64zv2m236j24inlkmd94q21";
|
2017-02-21 07:24:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"KERNEL_VERSION=${kernel.version}"
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -v -m 644 -D sch_cake.ko \
|
|
|
|
$out/lib/modules/${kernel.modDirVersion}/kernel/net/sched/sch_cake.ko
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The cake qdisc scheduler";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://www.bufferbloat.net/projects/codel/wiki/Cake/;
|
2017-02-21 07:24:35 +00:00
|
|
|
license = with licenses; [ bsd3 gpl2 ];
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = platforms.linux;
|
2017-09-14 15:48:28 +00:00
|
|
|
broken = !stdenv.lib.versionOlder kernel.version "4.13";
|
2017-02-21 07:24:35 +00:00
|
|
|
};
|
|
|
|
}
|