From ff636d58434e8f2bb4e27f96aa19addc45b049eb Mon Sep 17 00:00:00 2001 From: Atemu Date: Fri, 18 Dec 2020 12:08:52 +0100 Subject: [PATCH] linux_lqx: init at 5.9.15 Same source as linux_zen but with a release schedule that's not quite as bleeding edge. For example, it's currenly on the newest 5.9 release while linux_zen is already on 5.10 and won't release future 5.9 fixes. Originally meant for debianish Distros. --- pkgs/os-specific/linux/kernel/linux-lqx.nix | 24 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/os-specific/linux/kernel/linux-lqx.nix diff --git a/pkgs/os-specific/linux/kernel/linux-lqx.nix b/pkgs/os-specific/linux/kernel/linux-lqx.nix new file mode 100644 index 000000000000..8d17cf545e77 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-lqx.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, buildLinux, ... } @ args: + +let + version = "5.9.15"; +in + +buildLinux (args // { + modDirVersion = "${version}-lqx1"; + inherit version; + isZen = true; + + src = fetchFromGitHub { + owner = "zen-kernel"; + repo = "zen-kernel"; + rev = "v${version}-lqx1"; + sha256 = "1srkybhgm3rsmhs4m8ipv1zi4y1dxnlicgh0x9v2g4myn58lin57"; + }; + + extraMeta = { + branch = "5.9/master"; + maintainers = with stdenv.lib.maintainers; [ atemu ]; + }; + +} // (args.argsOverride or {})) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25adca6946e4..2e1e80d24d64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18448,6 +18448,14 @@ in ]; }; + linux_lqx = callPackage ../os-specific/linux/kernel/linux-lqx.nix { + kernelPatches = [ + kernelPatches.bridge_stp_helper + kernelPatches.request_key_helper + kernelPatches.export_kernel_fpu_functions."5.3" + ]; + }; + /* Linux kernel modules are inherently tied to a specific kernel. So rather than provide specific instances of those packages for a specific kernel, we have a function that builds those packages @@ -18762,6 +18770,7 @@ in # zen-kernel linuxPackages_zen = recurseIntoAttrs (linuxPackagesFor pkgs.linux_zen); + linuxPackages_lqx = recurseIntoAttrs (linuxPackagesFor pkgs.linux_lqx); # A function to build a manually-configured kernel linuxManualConfig = makeOverridable (callPackage ../os-specific/linux/kernel/manual-config.nix {});