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-03-20 04:20:00 +00:00
|
|
|
version = "5.12-rc4";
|
|
|
|
extraMeta.branch = "5.12";
|
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-03-20 04:20:00 +00:00
|
|
|
sha256 = "06i6xnfbyn522pj9zksx6ka01yxwv8dsrb2z517grv682sp8j70k";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Should the testing kernels ever be built on Hydra?
|
|
|
|
extraMeta.hydraPlatforms = [];
|
|
|
|
|
|
|
|
} // (args.argsOverride or {}))
|