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-07 03:04:46 +01:00
|
|
|
version = "4.12.5";
|
2017-07-13 13:40:08 +01:00
|
|
|
revision = "a";
|
2017-08-07 03:04:46 +01:00
|
|
|
sha256 = "03cyh9fsbd95gdd477k1jmk3f9aj5dnw5wr8041y51v8f63vzbpk";
|
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 {}))
|