Merge pull request #37 from ein-shved/master

[update/flake] Fix flake.lock update periodicity
This commit is contained in:
Andrey Onishchenko
2024-02-09 13:53:36 +03:00
committed by GitHub
+4 -1
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