2022-07-14 12:49:19 +00:00
|
|
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
|
|
|
|
|
|
|
let
|
|
|
|
# comments with variant added for update script
|
|
|
|
# ./update-zen.py zen
|
|
|
|
zenVariant = {
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "6.3.1"; #zen
|
2022-12-17 10:02:37 +00:00
|
|
|
suffix = "zen1"; #zen
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "1m3jvgvqycig8ls4dgqglz8f0hphc0dmvi0v98xdcxqclkhz87nj"; #zen
|
2022-07-14 12:49:19 +00:00
|
|
|
isLqx = false;
|
|
|
|
};
|
|
|
|
# ./update-zen.py lqx
|
|
|
|
lqxVariant = {
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "6.2.14"; #lqx
|
2023-01-11 07:51:40 +00:00
|
|
|
suffix = "lqx1"; #lqx
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "18c95lal9f2hak49rw888sc454pj7bmh1wnphlwb7sp8j944g8cf"; #lqx
|
2022-07-14 12:49:19 +00:00
|
|
|
isLqx = true;
|
|
|
|
};
|
|
|
|
zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {
|
|
|
|
inherit version;
|
2022-12-28 21:21:41 +00:00
|
|
|
modDirVersion = lib.versions.pad 3 "${version}-${suffix}";
|
2022-07-14 12:49:19 +00:00
|
|
|
isZen = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zen-kernel";
|
|
|
|
repo = "zen-kernel";
|
|
|
|
rev = "v${version}-${suffix}";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = [ ./update-zen.py (if isLqx then "lqx" else "zen") ];
|
|
|
|
|
|
|
|
extraMeta = {
|
|
|
|
branch = lib.versions.majorMinor version + "/master";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads." +
|
|
|
|
lib.optionalString isLqx " (Same as linux_zen but less aggressive release schedule)";
|
|
|
|
};
|
|
|
|
|
|
|
|
} // (args.argsOverride or { }));
|
|
|
|
in
|
|
|
|
{
|
|
|
|
zen = zenKernelsFor zenVariant;
|
|
|
|
lqx = zenKernelsFor lqxVariant;
|
|
|
|
}
|