build02: nixpkgs-update: before running the updatescript fetcher, pull latest nixpkgs

Why
===
* The updatescript was not getting the latest information

What changed
===
* Before finding updatescripts to run, update nixpkgs
This commit is contained in:
Ryan Mulligan 2023-10-08 07:48:28 -07:00
parent 20cd2e4226
commit 3c49f178df

View file

@ -138,6 +138,11 @@ let
'';
};
fetch-updatescript-cmd = pkgs.writeScriptBin "fetch-updatescript-cmd" ''
${pkgs.git}/bin/git -C /var/cache/nixpkgs-update/updatescript/nixpkgs pull upstream
${pkgs.nix}/bin/nix eval --raw -f ${./packages-with-update-script.nix}
'';
in
{
users.groups.r-ryantm = { };
@ -177,7 +182,8 @@ in
};
systemd.services.nixpkgs-update-fetch-repology = mkFetcher "repology" "${nixpkgs-update-bin} fetch-repology";
systemd.services.nixpkgs-update-fetch-updatescript = mkFetcher "updatescript" "${pkgs.nix}/bin/nix eval --raw -f ${./packages-with-update-script.nix}";
systemd.services.nixpkgs-update-fetch-updatescript = mkFetcher "updatescript" "${fetch-updatescript-cmd}/bin/fetch-updatescript-cmd";
systemd.services.nixpkgs-update-fetch-github = mkFetcher "github" nixpkgs-update-github-releases';
systemd.services.nixpkgs-update-worker1 = mkWorker "worker1";