2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
2020-07-27 09:31:44 -07:00
|
|
|
|
|
|
|
let
|
2021-08-13 00:48:40 -07:00
|
|
|
# having the full version string here makes it easier to update
|
2021-08-26 10:35:17 -07:00
|
|
|
modDirVersion = "5.13.13-zen1";
|
2021-08-13 00:48:40 -07:00
|
|
|
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 09:31:44 -07:00
|
|
|
in
|
|
|
|
|
|
|
|
buildLinux (args // {
|
2021-08-13 00:48:40 -07:00
|
|
|
inherit version modDirVersion;
|
2020-10-29 01:15:05 -07:00
|
|
|
isZen = true;
|
2020-07-27 09:31:44 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zen-kernel";
|
|
|
|
repo = "zen-kernel";
|
2021-08-13 00:48:40 -07:00
|
|
|
rev = "v${modDirVersion}";
|
2021-08-26 10:35:17 -07:00
|
|
|
sha256 = "sha256-aTTbhXy0wsDDCSbX1k27l9g3FliqwE6TbRq2zkI3mnw=";
|
2020-07-27 09:31:44 -07:00
|
|
|
};
|
|
|
|
|
2021-07-31 13:59:41 -07:00
|
|
|
structuredExtraConfig = with lib.kernel; {
|
|
|
|
ZEN_INTERACTIVE = yes;
|
|
|
|
};
|
|
|
|
|
2020-07-27 09:31:44 -07:00
|
|
|
extraMeta = {
|
2021-08-13 00:48:40 -07:00
|
|
|
inherit branch;
|
2021-01-15 06:45:37 -08:00
|
|
|
maintainers = with lib.maintainers; [ atemu andresilva ];
|
2020-12-26 04:30:53 -08:00
|
|
|
description = "Built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads.";
|
2020-07-27 09:31:44 -07:00
|
|
|
};
|
|
|
|
|
2021-06-08 07:22:28 -07:00
|
|
|
} // (args.argsOverride or { }))
|