Merge pull request #165524 from andrevmatos/kernel/zen

This commit is contained in:
Sandro 2022-03-27 12:56:34 +02:00 committed by GitHub
commit c1be8ecbc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,14 @@
let
# having the full version string here makes it easier to update
modDirVersion = "5.16.11-zen1";
modDirVersion = "5.17.0-zen1";
parts = lib.splitString "-" modDirVersion;
version = lib.elemAt parts 0;
suffix = lib.elemAt parts 1;
numbers = lib.splitString "." version;
branch = "${lib.elemAt numbers 0}.${lib.elemAt numbers 1}";
rev = if ((lib.elemAt numbers 2) == "0") then "v${branch}-${suffix}" else "v${modDirVersion}";
in
buildLinux (args // {
@ -18,8 +19,8 @@ buildLinux (args // {
src = fetchFromGitHub {
owner = "zen-kernel";
repo = "zen-kernel";
rev = "v${modDirVersion}";
sha256 = "sha256-aCmHtWTOlFo9r6g0pcOXMzksAH3spcOqElE9hynFbFo=";
inherit rev;
sha256 = "sha256-8DCcO2oPnwXjjm3PW7vNZKbB3S7XsEB/svAMhbPRJIo=";
};
structuredExtraConfig = with lib.kernel; {