2017-06-28 22:32:25 +02:00
|
|
|
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
2017-06-21 23:46:12 +02:00
|
|
|
|
|
|
|
let
|
2017-08-14 18:51:30 +02:00
|
|
|
version = "4.12.7";
|
2017-07-13 14:40:08 +02:00
|
|
|
revision = "a";
|
2017-08-14 18:51:30 +02:00
|
|
|
sha256 = "1kj0s5r7fx2d0crak7576jv9r6q7yx4aqmxpib6mhj1zfhsczdp0";
|
2017-06-21 23:46:12 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
import ./generic.nix (args // {
|
|
|
|
version = "${version}-${revision}";
|
2017-07-06 17:42:20 +02:00
|
|
|
extraMeta.branch = "4.12";
|
2017-08-05 21:38:17 +02:00
|
|
|
modDirVersion = "${version}-hardened";
|
2017-06-21 23:46:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit sha256;
|
|
|
|
owner = "copperhead";
|
|
|
|
repo = "linux-hardened";
|
|
|
|
rev = "${version}.${revision}";
|
|
|
|
};
|
|
|
|
|
|
|
|
kernelPatches = args.kernelPatches;
|
|
|
|
|
|
|
|
features.iwlwifi = true;
|
|
|
|
features.efiBootStub = true;
|
|
|
|
features.needsCifsUtils = true;
|
|
|
|
features.netfilterRPFilter = true;
|
|
|
|
} // (args.argsOverride or {}))
|