nixpkgs/pkgs/os-specific/linux/kernel/linux-xanmod.nix

32 lines
842 B
Nix
Raw Normal View History

2021-02-11 03:30:30 +00:00
{ lib, stdenv, buildLinux, fetchFromGitHub, ... } @ args:
let
2021-06-24 03:45:02 +00:00
version = "5.12.13";
2021-02-11 03:30:30 +00:00
suffix = "xanmod1-cacule";
in
2021-05-23 06:02:27 +00:00
buildLinux (args // rec {
inherit version;
2021-06-19 01:46:36 +00:00
modDirVersion = "${version}-${suffix}";
2021-02-11 03:30:30 +00:00
2021-05-23 06:02:27 +00:00
src = fetchFromGitHub {
owner = "xanmod";
repo = "linux";
rev = modDirVersion;
2021-06-24 03:45:02 +00:00
sha256 = "sha256-eFIWlguU1hnkAgTbRxSMTStq0X7XW4IT1/9XlQSgdMQ=";
2021-05-23 06:02:27 +00:00
};
2021-02-11 03:30:30 +00:00
2021-06-24 11:07:18 +00:00
structuredExtraConfig = with lib.kernel; {
PREEMPT = lib.mkForce yes;
PREEMPT_VOLUNTARY = lib.mkForce no;
2021-06-26 12:24:54 +00:00
NO_HZ_FULL = yes;
2021-06-26 12:25:22 +00:00
HZ_500 = yes;
2021-06-24 11:07:18 +00:00
};
2021-05-23 06:02:27 +00:00
extraMeta = {
branch = "5.12-cacule";
maintainers = with lib.maintainers; [ fortuneteller2k ];
description = "Built with custom settings and new features built to provide a stable, responsive and smooth desktop experience";
2021-06-03 19:19:54 +00:00
broken = stdenv.isAarch64;
2021-05-23 06:02:27 +00:00
};
} // (args.argsOverride or { }))