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

[update/flake] Fix flake.lock update periodicity

Check if exe binary was update first, then update all flake.lock only
when exe was updated.

Change-Id: I3ae7e7453cfe4ea78d1c4e598cc4a3370cd12f1d
This commit is contained in:
Yury Shvedov 2024-02-09 10:56:16 +03:00
parent f3e1a01f37
commit 91832fa35f

View File

@ -73,7 +73,10 @@ update_pkbuild() {
update_flake() {
sed -i 's#\(ymExe\.url\s*=\s*\).*;#\1'"$exe_link"';#' ./flake.nix
if check_dep nix; then
nix --extra-experimental-features 'nix-command flakes' flake update
nix --extra-experimental-features 'nix-command flakes' flake lock update --update-input ymExe
if [[ $(git status --porcelain) ]]; then
nix --extra-experimental-features 'nix-command flakes' flake update
fi
else
echo "flake.nix was updated, but nix is not installed to update flake.lock"
fi