2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "5.11-rc5";
|
2020-12-29 15:07:52 +00:00
|
|
|
extraMeta.branch = "5.11";
|
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";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "029nps41nrym5qz9lq832cys4rai04ig5xp9ddvrpazzh0lfnr4q";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Should the testing kernels ever be built on Hydra?
|
|
|
|
extraMeta.hydraPlatforms = [];
|
|
|
|
|
|
|
|
} // (args.argsOverride or {}))
|