0be87c7979
I merged master into staging-next but accidentally pushed it to master. This should get us back to87a19e9048
. This reverts commitac241fb7a5
, reversing changes made to76a439239e
.
19 lines
650 B
Nix
19 lines
650 B
Nix
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
with stdenv.lib;
|
|
|
|
buildLinux (args // rec {
|
|
version = "5.5.1";
|
|
|
|
# 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";
|
|
sha256 = "1n9hwzbhp43a4lvmyb0mbayfnb9s1h6nbg23i93wzg7391hr28q3";
|
|
};
|
|
} // (args.argsOverride or {}))
|