2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "5.8.18";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
|
|
|
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
|
|
|
|
|
|
|
# branchVersion needs to be x.y
|
|
|
|
extraMeta.branch = versions.majorMinor version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
2020-11-06 00:33:48 +00:00
|
|
|
sha256 = "0d2mm16mjyl2d734ak0lj8vd76h3r0san7l7g2zczd5pjkva7d2a";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
} // (args.argsOverride or {}))
|