Skip to content

Commit

Permalink
linuxPackages.sch_cake: init at 2017-01-28
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Feb 21, 2017
1 parent 5bd6331 commit 6fd27c7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/os-specific/linux/sch_cake/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitHub, kernel }:

stdenv.mkDerivation {
name = "sch_cake-2017-01-28";

src = fetchFromGitHub {
owner = "dtaht";
repo = "sch_cake";
rev = "9789742cfc596d48583ba4cdbc8f38d026121fa6";
sha256 = "03xgkqrv8d9q8rr21awbld0kvwglyinpm71nk16gvm4rd37c5h76";
};

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";
homepage = "https://www.bufferbloat.net/projects/codel/wiki/Cake/";
license = with licenses; [ bsd3 gpl2 ];
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11484,6 +11484,8 @@ with pkgs;

seturgent = callPackage ../os-specific/linux/seturgent { };

sch_cake = callPackage ../os-specific/linux/sch_cake { };

inherit (callPackage ../os-specific/linux/spl {
configFile = "kernel";
inherit kernel;
Expand Down

0 comments on commit 6fd27c7

Please sign in to comment.