2017-06-28 21:32:25 +01:00
|
|
|
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
2017-06-21 22:46:12 +01:00
|
|
|
|
|
|
|
let
|
2017-08-27 14:43:23 +01:00
|
|
|
version = "4.12.9";
|
2017-07-13 13:40:08 +01:00
|
|
|
revision = "a";
|
2017-08-27 14:43:23 +01:00
|
|
|
sha256 = "0bdhzh483l9g6c7n263f4wxx5klfciswzkmd5p6jlf9wqx72km33";
|
2017-06-21 22:46:12 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
import ./generic.nix (args // {
|
|
|
|
version = "${version}-${revision}";
|
2017-07-06 16:42:20 +01:00
|
|
|
extraMeta.branch = "4.12";
|
2017-08-05 20:38:17 +01:00
|
|
|
modDirVersion = "${version}-hardened";
|
2017-06-21 22:46:12 +01: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 {}))
|