0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-04-01 23:03:44 +03:00

Test generate_packages.py

This commit is contained in:
Andrey Onischenko 2025-02-25 14:38:01 +03:00 committed by GitHub
parent fcf16133cd
commit b24c75d1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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