-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122438 from xaverdh/linux-5.12
linux_5_12: init at 5.12.2
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ lib, buildPackages, fetchurl, perl, buildLinux, nixosTests, modDirVersionArg ? null, ... } @ args: | ||
|
||
with lib; | ||
|
||
buildLinux (args // rec { | ||
version = "5.12.2"; | ||
|
||
# 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 = "03gp5vq8vkwvksjsa1birds37rmrr73s9ik6m1wvgz8mdncvk64c"; | ||
}; | ||
|
||
kernelTests = args.kernelTests or [ nixosTests.kernel-generic.linux_5_12 ]; | ||
} // (args.argsOverride or {})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters