zen-kernels: refactor suffix

Changing it required modifications in multiple places which is error-prone
This commit is contained in:
Atemu 2021-01-18 10:45:22 +01:00
parent 68398d2dd5
commit 4a0070fc9f
2 changed files with 6 additions and 4 deletions

View File

@ -2,17 +2,18 @@
let let
version = "5.10.6"; version = "5.10.6";
suffix = "lqx1";
in in
buildLinux (args // { buildLinux (args // {
modDirVersion = "${version}-lqx1"; modDirVersion = "${version}-${suffix}";
inherit version; inherit version;
isZen = true; isZen = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zen-kernel"; owner = "zen-kernel";
repo = "zen-kernel"; repo = "zen-kernel";
rev = "v${version}-lqx1"; rev = "v${version}-${suffix}";
sha256 = "0vvb00311yhf08ib3yvkjwk2j45f8r268ywg5299yjgbyl6g95kg"; sha256 = "0vvb00311yhf08ib3yvkjwk2j45f8r268ywg5299yjgbyl6g95kg";
}; };

View File

@ -2,17 +2,18 @@
let let
version = "5.10.6"; version = "5.10.6";
suffix = "zen1";
in in
buildLinux (args // { buildLinux (args // {
modDirVersion = "${version}-zen1"; modDirVersion = "${version}-${suffix}";
inherit version; inherit version;
isZen = true; isZen = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zen-kernel"; owner = "zen-kernel";
repo = "zen-kernel"; repo = "zen-kernel";
rev = "v${version}-zen1"; rev = "v${version}-${suffix}";
sha256 = "0asn4ysnzv845g35ca9sdi89sc7clcc88xmx64pcxmh033civ5fw"; sha256 = "0asn4ysnzv845g35ca9sdi89sc7clcc88xmx64pcxmh033civ5fw";
}; };