From 6ce986c93487b4815a2f941c0976c21e3228183f Mon Sep 17 00:00:00 2001 From: fortuneteller2k Date: Thu, 11 Feb 2021 11:30:30 +0800 Subject: [PATCH] linux_xanmod: init at 5.11.10 --- .../os-specific/linux/kernel/linux-xanmod.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 10 +++++++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/os-specific/linux/kernel/linux-xanmod.nix diff --git a/pkgs/os-specific/linux/kernel/linux-xanmod.nix b/pkgs/os-specific/linux/kernel/linux-xanmod.nix new file mode 100644 index 00000000000..ab01a4bcc27 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-xanmod.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, buildLinux, fetchFromGitHub, ... } @ args: + +let + version = "5.11.10"; + suffix = "xanmod1-cacule"; +in + buildLinux (args // rec { + modDirVersion = "${version}-${suffix}"; + inherit version; + + src = fetchFromGitHub { + owner = "xanmod"; + repo = "linux"; + rev = modDirVersion; + sha256 = "sha256-Pn1rX61mA8FEt5G1GppK/YyzXnB+hdm5pWh/4swQ4VE="; + extraPostFetch = '' + rm $out/.config + ''; + }; + + extraMeta = { + branch = "5.11"; + maintainers = with lib.maintainers; [ fortuneteller2k ]; + description = "Built with custom settings and new features built to provide a stable, responsive and smooth desktop experience"; + broken = stdenv.hostPlatform.isAarch64; + }; + } // (args.argsOverride or { })) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8d248865fb1..cbf11b167df 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19152,6 +19152,13 @@ in ]; }; + linux_xanmod = callPackage ../os-specific/linux/kernel/linux-xanmod.nix { + kernelPatches = [ + kernelPatches.bridge_stp_helper + kernelPatches.request_key_helper + ]; + }; + /* 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 @@ -19466,6 +19473,9 @@ in linuxPackages_zen = recurseIntoAttrs (linuxPackagesFor pkgs.linux_zen); linuxPackages_lqx = recurseIntoAttrs (linuxPackagesFor pkgs.linux_lqx); + # XanMod kernel + linuxPackages_xanmod = recurseIntoAttrs (linuxPackagesFor pkgs.linux_xanmod); + # A function to build a manually-configured kernel linuxManualConfig = makeOverridable (callPackage ../os-specific/linux/kernel/manual-config.nix {});