2024-11-10 21:20:25 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
callPackage,
|
|
|
|
writeScriptBin,
|
2024-11-11 09:26:19 +00:00
|
|
|
bash,
|
2024-11-12 07:57:52 +00:00
|
|
|
nix,
|
2024-11-10 21:20:25 +00:00
|
|
|
}:
|
|
|
|
let
|
2024-11-12 15:16:34 +00:00
|
|
|
script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [
|
|
|
|
./art
|
|
|
|
./kodi
|
|
|
|
];
|
2024-11-10 21:20:25 +00:00
|
|
|
in
|
|
|
|
writeScriptBin "updater" ''
|
2024-11-11 09:26:19 +00:00
|
|
|
#!${bash}/bin/bash
|
|
|
|
set -euxo pipefail
|
2024-11-12 07:57:52 +00:00
|
|
|
${nix}/bin/nix flake update
|
2024-11-10 21:20:25 +00:00
|
|
|
${script}
|
|
|
|
''
|