2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
2020-07-27 16:31:44 +00:00
|
|
|
|
|
|
|
let
|
2021-08-13 07:48:40 +00:00
|
|
|
# having the full version string here makes it easier to update
|
2022-05-12 19:03:14 +00:00
|
|
|
modDirVersion = "5.17.7-zen1";
|
2021-08-13 07:48:40 +00: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}";
|
2022-03-23 22:58:51 +00:00
|
|
|
rev = if ((lib.elemAt numbers 2) == "0") then "v${branch}-${suffix}" else "v${modDirVersion}";
|
2020-07-27 16:31:44 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
buildLinux (args // {
|
2021-08-13 07:48:40 +00:00
|
|
|
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";
|
2022-03-23 22:58:51 +00:00
|
|
|
inherit rev;
|
2022-05-12 19:03:14 +00:00
|
|
|
sha256 = "sha256-sjXe+L9ZTtHDPLFY5d7Ui0NU0s7fw0qLfXIDnRxpKvE=";
|
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 = {
|
2021-08-13 07:48:40 +00:00
|
|
|
inherit branch;
|
2021-01-15 14:45:37 +00:00
|
|
|
maintainers = with lib.maintainers; [ atemu andresilva ];
|
2020-12-26 12:30:53 +00:00
|
|
|
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 { }))
|