depot/third_party/nixpkgs/pkgs/os-specific/linux/kernel/zen-kernels.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

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.3"; #zen
suffix = "zen2"; #zen
sha256 = "1paywv7y4jizlq092irjcn9r62npzglrf5s008l6129b9q5ib0v8"; #zen
isLqx = false;
};
# ./update-zen.py lqx
lqxVariant = {
version = "5.19.16"; #lqx
suffix = "lqx4"; #lqx
sha256 = "0mzrgy2kq0i26vgcdfc7nz7m6rw17s0lr9idwy71iz1f8i1pz82w"; #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;
}