From 9d6e3792c1143e63747169b12e5124a2b923dec2 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Sun, 22 Sep 2024 18:01:02 +1000
Subject: [PATCH] build02/nixpkgs-update: fix fetch-updatescript

---
 hosts/build02/nixpkgs-update.nix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hosts/build02/nixpkgs-update.nix b/hosts/build02/nixpkgs-update.nix
index 8e6c5c9..69d32bc 100644
--- a/hosts/build02/nixpkgs-update.nix
+++ b/hosts/build02/nixpkgs-update.nix
@@ -199,7 +199,8 @@ in
   # https://github.com/nix-community/infra/issues/1192
   #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}";
+  # breaks with nix 2.24
+  systemd.services.nixpkgs-update-fetch-updatescript = mkFetcher "updatescript" "${pkgs.nixVersions.nix_2_18}/bin/nix eval --raw -f ${./packages-with-update-script.nix}";
   systemd.services.nixpkgs-update-fetch-github = mkFetcher "github" "${inputs.nixpkgs-update-github-releases}/main.py";
 
   systemd.services.nixpkgs-update-worker1 = mkWorker "worker1";