2022-12-20 13:15:04 +00:00
|
|
|
{ lib, buildPackages, fetchurl, perl, buildLinux, nixosTests, ... } @ args:
|
2020-12-14 17:51:16 +00:00
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
with lib;
|
2020-12-14 17:51:16 +00:00
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2022-12-23 07:13:54 +00:00
|
|
|
version = "5.10.161";
|
2020-12-14 17:51:16 +00:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
2022-12-21 11:49:37 +00:00
|
|
|
modDirVersion = versions.pad 3 version;
|
2020-12-14 17:51:16 +00:00
|
|
|
|
|
|
|
# branchVersion needs to be x.y
|
|
|
|
extraMeta.branch = versions.majorMinor version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
2022-12-23 07:13:54 +00:00
|
|
|
sha256 = "0ya04njrxr4d37zkxvivmn5f0bdvcb504pyp9ahwz8nqpk8gdaks";
|
2020-12-14 17:51:16 +00:00
|
|
|
};
|
|
|
|
} // (args.argsOverride or {}))
|