add nix flake updating to the updater script

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-12 08:57:52 +01:00
parent aebd8cb5be
commit d79cc03be1

View file

@ -3,6 +3,7 @@
callPackage, callPackage,
writeScriptBin, writeScriptBin,
bash, bash,
nix,
}: }:
let let
script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [ ./art ]; script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [ ./art ];
@ -10,5 +11,6 @@ in
writeScriptBin "updater" '' writeScriptBin "updater" ''
#!${bash}/bin/bash #!${bash}/bin/bash
set -euxo pipefail set -euxo pipefail
${nix}/bin/nix flake update
${script} ${script}
'' ''