3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix

31 lines
846 B
Nix
Raw Normal View History

2017-06-28 21:32:25 +01:00
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
2017-09-04 16:09:29 +01:00
with stdenv.lib;
let
version = "4.13.10";
2017-09-16 13:57:07 +01:00
revision = "a";
sha256 = "0m4yxdcll1zvvvagpjf9s7vw7dmad22qbakhc50as3ixyd7w5ah6";
2017-09-04 16:09:29 +01: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 16:09:29 +01: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 16:09:29 +01:00
inherit modDirVersion;
version = "${version}-${revision}";
2017-09-04 16:09:29 +01:00
extraMeta.branch = "${branchVersion}";
src = fetchFromGitHub {
inherit sha256;
owner = "copperhead";
repo = "linux-hardened";
rev = "${version}.${revision}";
};
} // (args.argsOverride or {}))