1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
|
|
|
let
|
|
# comments with variant added for update script
|
|
# ./update-zen.py zen
|
|
zenVariant = {
|
|
version = "6.0.7"; #zen
|
|
suffix = "zen1"; #zen
|
|
sha256 = "011wlc0h99vx830qmgy569srhb3rzhyy5j235pf7m541392vh41g"; #zen
|
|
isLqx = false;
|
|
};
|
|
# ./update-zen.py lqx
|
|
lqxVariant = {
|
|
version = "6.0.7"; #lqx
|
|
suffix = "lqx1"; #lqx
|
|
sha256 = "09h99fdzicbc4kkl51dqwgqqa9416hd7bvrghr4pdjqrw4z15557"; #lqx
|
|
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";
|
|
maintainers = with lib.maintainers; [ andresilva pedrohlc ];
|
|
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;
|
|
}
|