2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "5.10-rc6";
|
2020-11-03 02:18:15 +00:00
|
|
|
extraMeta.branch = "5.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z, will always add .0
|
|
|
|
modDirVersion = if (modDirVersionArg == null) then builtins.replaceStrings ["-"] [".0-"] version else modDirVersionArg;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "14ykzs98r918sqv7lddlps4r7hza1zgw0x67mmj77cmqiv6d8ffi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Should the testing kernels ever be built on Hydra?
|
|
|
|
extraMeta.hydraPlatforms = [];
|
|
|
|
|
|
|
|
} // (args.argsOverride or {}))
|