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 = {
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "5.18.12"; #zen
|
2022-07-14 12:49:19 +00:00
|
|
|
suffix = "zen1"; #zen
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "1h0qnwq967ncqv40msa94jlwqf9rw2kgrr4gwx6n8i6wn0dmxpbq"; #zen
|
2022-07-14 12:49:19 +00:00
|
|
|
isLqx = false;
|
|
|
|
};
|
|
|
|
# ./update-zen.py lqx
|
|
|
|
lqxVariant = {
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "5.18.12"; #lqx
|
2022-07-14 12:49:19 +00:00
|
|
|
suffix = "lqx1"; #lqx
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "0bxmscx7m9fp73brj6x3d2vk5fnys7a502vllsf8dg74k0g83781"; #lqx
|
2022-07-14 12:49:19 +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;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = [ ./update-zen.py (if isLqx then "lqx" else "zen") ];
|
|
|
|
|
|
|
|
extraMeta = {
|
|
|
|
branch = lib.versions.majorMinor version + "/master";
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = with lib.maintainers; [ andresilva pedrohlc psydvl ];
|
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;
|
|
|
|
}
|