summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorYurii Matsiuk <ymatsiuk@users.noreply.github.com>2021-06-28 14:35:35 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-06-28 10:46:41 -0700
commit367a53a82b0a3ffe6c1ea4261c22764129994669 (patch)
tree53f3aedb8230ce52653424dbdf622598e6fdf9a5 /pkgs/os-specific
parentbc5536f600fa2513f7422e824cd4ec5bd969a6f1 (diff)
downloadnixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar.gz
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar.bz2
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar.lz
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar.xz
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.tar.zst
nixpkgs-367a53a82b0a3ffe6c1ea4261c22764129994669.zip
linux_5_13: init at 5.13
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/linux-5.13.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-5.13.nix b/pkgs/os-specific/linux/kernel/linux-5.13.nix
new file mode 100644
index 00000000000..eb01fb6289c
--- /dev/null
+++ b/pkgs/os-specific/linux/kernel/linux-5.13.nix
@@ -0,0 +1,21 @@
+{ lib, buildPackages, fetchurl, perl, buildLinux, nixosTests, modDirVersionArg ? null, ... } @ args:
+
+with lib;
+
+buildLinux (args // rec {
+  version = "5.13";
+
+  # 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 = "sha256-P2uql/N1GEOfUd8uTz1lqCLKX/AWqo5g0sxTuVpsidk=";
+  };
+
+  kernelTests = args.kernelTests or [ nixosTests.kernel-generic.linux_5_13 ];
+} // (args.argsOverride or { }))
+