2019-11-25 09:21:27 -05:00
|
|
|
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2020-02-10 07:16:21 -05:00
|
|
|
version = "5.4.18";
|
2019-11-25 09:21:27 -05: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-02-10 07:16:21 -05:00
|
|
|
sha256 = "12ad4fnxag16ar2afiljv4nnv15i4f493sz6m7i9qgjld7yz3scj";
|
2019-11-25 09:21:27 -05:00
|
|
|
};
|
|
|
|
|
} // (args.argsOverride or {}))
|