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

36 lines
962 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildLinux, ... } @ args:
2020-07-27 16:31:44 +00:00
let
# having the full version string here makes it easier to update
modDirVersion = "5.13.13-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 16:31:44 +00:00
in
buildLinux (args // {
inherit version modDirVersion;
2020-10-29 08:15:05 +00:00
isZen = true;
2020-07-27 16:31:44 +00:00
src = fetchFromGitHub {
owner = "zen-kernel";
repo = "zen-kernel";
rev = "v${modDirVersion}";
sha256 = "sha256-aTTbhXy0wsDDCSbX1k27l9g3FliqwE6TbRq2zkI3mnw=";
2020-07-27 16:31:44 +00:00
};
2021-07-31 20:59:41 +00:00
structuredExtraConfig = with lib.kernel; {
ZEN_INTERACTIVE = yes;
};
2020-07-27 16:31:44 +00:00
extraMeta = {
inherit branch;
2021-01-15 14:45:37 +00: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 16:31:44 +00:00
};
2021-06-08 14:22:28 +00:00
} // (args.argsOverride or { }))