2022-03-28 18:59:12 +00:00
|
|
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
|
|
|
|
|
|
|
let
|
2022-06-28 22:22:47 +00:00
|
|
|
# comments with variant added for update script
|
|
|
|
# ./update-zen.py zen
|
2022-03-28 18:59:12 +00:00
|
|
|
zenVariant = {
|
2022-07-24 14:35:35 +00:00
|
|
|
version = "5.18.14"; #zen
|
2022-06-28 22:22:47 +00:00
|
|
|
suffix = "zen1"; #zen
|
2022-07-24 14:35:35 +00:00
|
|
|
sha256 = "019v1ryzg5fq6xwvb8anmfxh0zpy8wd0qfiszfqxkqw7cnqc6wf1"; #zen
|
2022-03-28 18:59:12 +00:00
|
|
|
isLqx = false;
|
|
|
|
};
|
2022-06-28 22:22:47 +00:00
|
|
|
# ./update-zen.py lqx
|
2022-03-28 18:59:12 +00:00
|
|
|
lqxVariant = {
|
2022-07-25 12:53:18 +00:00
|
|
|
version = "5.18.14"; #lqx
|
2022-07-26 00:49:23 +00:00
|
|
|
suffix = "lqx2"; #lqx
|
|
|
|
sha256 = "0g45y0rhbwpz12cbrh486vqxpzwdm0w5j7h3nxr0dr2ij8qzrr5p"; #lqx
|
2022-03-28 18:59:12 +00:00
|
|
|
isLqx = true;
|
|
|
|
};
|
|
|
|
zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {
|
|
|
|
inherit version;
|
|
|
|
modDirVersion = "${lib.concatStringsSep "." (lib.take 3 (lib.splitVersion version ++ [ "0" "0" ]))}-${suffix}";
|
|
|
|
isZen = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zen-kernel";
|
|
|
|
repo = "zen-kernel";
|
|
|
|
rev = "v${version}-${suffix}";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2022-06-28 22:22:47 +00:00
|
|
|
passthru.updateScript = [ ./update-zen.py (if isLqx then "lqx" else "zen") ];
|
|
|
|
|
2022-03-28 18:59:12 +00:00
|
|
|
extraMeta = {
|
|
|
|
branch = lib.versions.majorMinor version + "/master";
|
2022-07-16 14:48:23 +00:00
|
|
|
maintainers = with lib.maintainers; [ andresilva pedrohlc psydvl ];
|
2022-03-28 18:59:12 +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;
|
|
|
|
}
|