Bumped azos-core, added sudo up-front to build

This commit is contained in:
2026-10-18 06:33:58 +03:00
parent 63f9e5c1d7
commit a7d90c3b8d
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -5,7 +5,18 @@ pkgs.mkShell {
nh
(pkgs.writeShellScriptBin
"azos-lauretta-update"
"nh os switch '.?submodules=1#lauretta'")
''
# Authenticate up front and keep the sudo timestamp fresh during the
# build, so nh's activation step doesn't prompt (and time out) at the end.
sudo -v || exit 1
while true; do
sleep 60
sudo -n -v 2>/dev/null || exit
done &
keepalive=$!
trap 'kill $keepalive 2>/dev/null' EXIT
nh os switch '.?submodules=1#lauretta'
'')
(pkgs.writeShellScriptBin
"azos-update-azos-core"
"nix flake update --flake '.?submodules=1' azos-core")