From ff636d58434e8f2bb4e27f96aa19addc45b049eb Mon Sep 17 00:00:00 2001 From: Atemu Date: Fri, 18 Dec 2020 12:08:52 +0100 Subject: [PATCH 1/4] 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 {}); From fd2d1eb90788c97b77f561eba97b205ded6c49a5 Mon Sep 17 00:00:00 2001 From: Atemu Date: Tue, 22 Dec 2020 07:23:50 +0100 Subject: [PATCH 2/4] linux_lqx: 5.9.15 -> 5.9.16 --- pkgs/os-specific/linux/kernel/linux-lqx.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-lqx.nix b/pkgs/os-specific/linux/kernel/linux-lqx.nix index 8d17cf545e77..765bee947213 100644 --- a/pkgs/os-specific/linux/kernel/linux-lqx.nix +++ b/pkgs/os-specific/linux/kernel/linux-lqx.nix @@ -1,7 +1,7 @@ { stdenv, fetchFromGitHub, buildLinux, ... } @ args: let - version = "5.9.15"; + version = "5.9.16"; in buildLinux (args // { @@ -13,7 +13,7 @@ buildLinux (args // { owner = "zen-kernel"; repo = "zen-kernel"; rev = "v${version}-lqx1"; - sha256 = "1srkybhgm3rsmhs4m8ipv1zi4y1dxnlicgh0x9v2g4myn58lin57"; + sha256 = "0ljvqf91nxpql98z75bicg5y3nzkm41rq5b0rm1kcnsk0ji829ps"; }; extraMeta = { From 02437ff86c879a9a5e39398574a79c1fd20c9d08 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sat, 26 Dec 2020 13:30:53 +0100 Subject: [PATCH 3/4] linux_zen: add a description Taken from https://liquorix.net/ who use the same sauce in their kernel --- pkgs/os-specific/linux/kernel/linux-zen.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/kernel/linux-zen.nix b/pkgs/os-specific/linux/kernel/linux-zen.nix index 5ac81d6ebb94..92de750ee3b0 100644 --- a/pkgs/os-specific/linux/kernel/linux-zen.nix +++ b/pkgs/os-specific/linux/kernel/linux-zen.nix @@ -19,6 +19,7 @@ buildLinux (args // { extraMeta = { branch = "5.9/master"; maintainers = with stdenv.lib.maintainers; [ atemu andresilva ]; + description = "Built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads."; }; } // (args.argsOverride or {})) From 0fdf69260a0d09abf329eefedc70ae945d8f039f Mon Sep 17 00:00:00 2001 From: Atemu Date: Sat, 26 Dec 2020 13:31:48 +0100 Subject: [PATCH 4/4] linux_lqx: add a description --- pkgs/os-specific/linux/kernel/linux-lqx.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/linux-lqx.nix b/pkgs/os-specific/linux/kernel/linux-lqx.nix index 765bee947213..f27043789797 100644 --- a/pkgs/os-specific/linux/kernel/linux-lqx.nix +++ b/pkgs/os-specific/linux/kernel/linux-lqx.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, buildLinux, ... } @ args: +{ stdenv, fetchFromGitHub, buildLinux, linux_zen, ... } @ args: let version = "5.9.16"; @@ -19,6 +19,7 @@ buildLinux (args // { extraMeta = { branch = "5.9/master"; maintainers = with stdenv.lib.maintainers; [ atemu ]; + description = linux_zen.meta.description + " (Same as linux_zen but less aggressive release schedule)"; }; } // (args.argsOverride or {}))