Merge pull request #165524 from andrevmatos/kernel/zen
This commit is contained in:
commit
c1be8ecbc1
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
# having the full version string here makes it easier to update
|
# 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;
|
parts = lib.splitString "-" modDirVersion;
|
||||||
version = lib.elemAt parts 0;
|
version = lib.elemAt parts 0;
|
||||||
suffix = lib.elemAt parts 1;
|
suffix = lib.elemAt parts 1;
|
||||||
|
|
||||||
numbers = lib.splitString "." version;
|
numbers = lib.splitString "." version;
|
||||||
branch = "${lib.elemAt numbers 0}.${lib.elemAt numbers 1}";
|
branch = "${lib.elemAt numbers 0}.${lib.elemAt numbers 1}";
|
||||||
|
rev = if ((lib.elemAt numbers 2) == "0") then "v${branch}-${suffix}" else "v${modDirVersion}";
|
||||||
in
|
in
|
||||||
|
|
||||||
buildLinux (args // {
|
buildLinux (args // {
|
||||||
@ -18,8 +19,8 @@ buildLinux (args // {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zen-kernel";
|
owner = "zen-kernel";
|
||||||
repo = "zen-kernel";
|
repo = "zen-kernel";
|
||||||
rev = "v${modDirVersion}";
|
inherit rev;
|
||||||
sha256 = "sha256-aCmHtWTOlFo9r6g0pcOXMzksAH3spcOqElE9hynFbFo=";
|
sha256 = "sha256-8DCcO2oPnwXjjm3PW7vNZKbB3S7XsEB/svAMhbPRJIo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
structuredExtraConfig = with lib.kernel; {
|
structuredExtraConfig = with lib.kernel; {
|
||||||
|
Loading…
Reference in New Issue
Block a user