nixpkgs/pkgs/os-specific/linux/kernel/linux-xanmod.nix
2021-06-24 20:38:21 +08:00

29 lines
802 B
Nix

{ lib, stdenv, buildLinux, fetchFromGitHub, ... } @ args:
let
version = "5.12.13";
suffix = "xanmod1-cacule";
in
buildLinux (args // rec {
inherit version;
modDirVersion = "${version}-${suffix}";
src = fetchFromGitHub {
owner = "xanmod";
repo = "linux";
rev = modDirVersion;
sha256 = "sha256-eFIWlguU1hnkAgTbRxSMTStq0X7XW4IT1/9XlQSgdMQ=";
};
structuredExtraConfig = with lib.kernel; {
PREEMPT = lib.mkForce yes;
PREEMPT_VOLUNTARY = lib.mkForce no;
};
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";
broken = stdenv.isAarch64;
};
} // (args.argsOverride or { }))