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:
parent
fcf16133cd
commit
b24c75d1eb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user