nixpkgs-suyu/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix
2017-07-13 08:40:08 -04:00

27 lines
666 B
Nix

{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
let
version = "4.12.1";
revision = "a";
sha256 = "0fjw5fmxpvdhfqkr4lcpmqw8xxj92q19ya8q48yhxvv149ahcvhq";
in
import ./generic.nix (args // {
version = "${version}-${revision}";
extraMeta.branch = "4.12";
modDirVersion = "${version}.0";
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 {}))