nixpkgs-suyu/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix

31 lines
845 B
Nix
Raw Normal View History

2017-06-28 22:32:25 +02:00
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
2017-09-04 17:09:29 +02:00
with stdenv.lib;
let
2017-12-11 19:56:04 +01:00
version = "4.14.5";
2017-09-16 14:57:07 +02:00
revision = "a";
2017-12-11 19:56:04 +01:00
sha256 = "1ahh4rc0w9fnd03x6wm8s8ar9c1spw1apph8lvlfr0x1x2kh2wqh";
2017-09-04 17:09:29 +02:00
# modVersion needs to be x.y.z, will automatically add .0 if needed
modVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
2017-09-04 17:09:29 +02:00
# branchVersion needs to be x.y
branchVersion = concatStrings (intersperse "." (take 2 (splitString "." version)));
modDirVersion = "${modVersion}-hardened";
in
import ./generic.nix (args // {
2017-09-04 17:09:29 +02:00
inherit modDirVersion;
version = "${version}-${revision}";
2017-09-04 17:09:29 +02:00
extraMeta.branch = "${branchVersion}";
src = fetchFromGitHub {
inherit sha256;
owner = "copperhead";
repo = "linux-hardened";
rev = "${version}.${revision}";
};
} // (args.argsOverride or {}))