2017-06-28 21:32:25 +01:00
|
|
|
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
2017-06-21 22:46:12 +01:00
|
|
|
|
2017-09-04 16:09:29 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-06-21 22:46:12 +01:00
|
|
|
let
|
2018-01-11 13:30:19 +00:00
|
|
|
version = "4.14.13";
|
2017-12-28 02:40:39 +00:00
|
|
|
revision = "a";
|
2018-01-11 13:30:19 +00:00
|
|
|
sha256 = "08fvb1lllb0xkckw2y66g0j5z88kp877r51jj3kksfkvjfibjr0j";
|
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-06-21 22:46:12 +01:00
|
|
|
|
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
|
2017-06-21 22:46:12 +01:00
|
|
|
import ./generic.nix (args // {
|
2017-09-04 16:09:29 +01:00
|
|
|
inherit modDirVersion;
|
|
|
|
|
2017-06-21 22:46:12 +01:00
|
|
|
version = "${version}-${revision}";
|
2017-09-04 16:09:29 +01:00
|
|
|
extraMeta.branch = "${branchVersion}";
|
2017-06-21 22:46:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit sha256;
|
|
|
|
owner = "copperhead";
|
|
|
|
repo = "linux-hardened";
|
|
|
|
rev = "${version}.${revision}";
|
|
|
|
};
|
|
|
|
} // (args.argsOverride or {}))
|