nixpkgs-suyu/pkgs/os-specific/linux/kernel/linux-zen.nix

36 lines
962 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildLinux, ... } @ args:
2020-07-27 18:31:44 +02:00
let
# having the full version string here makes it easier to update
2021-12-22 11:40:48 +01:00
modDirVersion = "5.15.11-zen1";
parts = lib.splitString "-" modDirVersion;
version = lib.elemAt parts 0;
suffix = lib.elemAt parts 1;
numbers = lib.splitString "." version;
branch = "${lib.elemAt numbers 0}.${lib.elemAt numbers 1}";
2020-07-27 18:31:44 +02:00
in
buildLinux (args // {
inherit version modDirVersion;
2020-10-29 09:15:05 +01:00
isZen = true;
2020-07-27 18:31:44 +02:00
src = fetchFromGitHub {
owner = "zen-kernel";
repo = "zen-kernel";
rev = "v${modDirVersion}";
2021-12-22 11:40:48 +01:00
sha256 = "sha256-KOy1bmNnfa8LtnE+03Y+0pr9r1OCimY0bjGsVmGnPN4=";
2020-07-27 18:31:44 +02:00
};
2021-07-31 22:59:41 +02:00
structuredExtraConfig = with lib.kernel; {
ZEN_INTERACTIVE = yes;
};
2020-07-27 18:31:44 +02:00
extraMeta = {
inherit branch;
2021-01-15 15:45:37 +01:00
maintainers = with lib.maintainers; [ atemu andresilva ];
description = "Built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads.";
2020-07-27 18:31:44 +02:00
};
2021-06-08 16:22:28 +02:00
} // (args.argsOverride or { }))