2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
2020-07-27 18:31:44 +02:00
|
|
|
|
|
|
|
let
|
2021-08-13 09:48:40 +02:00
|
|
|
# having the full version string here makes it easier to update
|
2021-12-16 12:27:36 +01:00
|
|
|
modDirVersion = "5.15.8-zen1";
|
2021-08-13 09:48:40 +02: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 18:31:44 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
buildLinux (args // {
|
2021-08-13 09:48:40 +02:00
|
|
|
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";
|
2021-08-13 09:48:40 +02:00
|
|
|
rev = "v${modDirVersion}";
|
2021-12-16 12:27:36 +01:00
|
|
|
sha256 = "sha256-vuMgxdGjTpR4iVVm1y28Hj3CdfpwGLnTpyZEnz3jd1U=";
|
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 = {
|
2021-08-13 09:48:40 +02:00
|
|
|
inherit branch;
|
2021-01-15 15:45:37 +01:00
|
|
|
maintainers = with lib.maintainers; [ atemu andresilva ];
|
2020-12-26 13:30:53 +01:00
|
|
|
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 { }))
|