0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Fix for nix version

This commit is contained in:
Andrey Onishchenko 2024-05-12 14:36:31 +03:00
parent c3d30592ec
commit ee6326f373
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ jobs:
steps: steps:
- name: Install dependencies - name: Install dependencies
run: pacman -Syy -q --noconfirm && pacman -S -q --noconfirm git jq nix python python-requests run: pacman -Syy -q --noconfirm && pacman -S -q --noconfirm git jq nix python python-requests gcc-libs
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -38,6 +38,7 @@ def generate_arch():
def is_nix_version_2_19(): def is_nix_version_2_19():
version = subprocess.run(["nix", "--version"], capture_output=True, text=True).stdout.split()[2] version = subprocess.run(["nix", "--version"], capture_output=True, text=True).stdout.split()[2]
print(f"Nix version: {version}")
major, minor, _ = map(int, version.split(".")) major, minor, _ = map(int, version.split("."))
if major > 2 or (minor >= 19 and major == 2): if major > 2 or (minor >= 19 and major == 2):
return True return True