From 0d640442b1ab8a1a61f42c751b5cf794a5bc83bd Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 22 Dec 2024 19:07:11 +0100 Subject: [PATCH] nix: Change postgrest-nixpkgs-upgrade to unstable Since we're currently on the unstable channel and will likely stay there for a while, let's encode this in the update script. Once we switch back to stable, if we do, we can still adjust it again. --- nix/tools/nixpkgsTools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/tools/nixpkgsTools.nix b/nix/tools/nixpkgsTools.nix index c58953e665..6ae8234a0c 100644 --- a/nix/tools/nixpkgsTools.nix +++ b/nix/tools/nixpkgsTools.nix @@ -33,7 +33,7 @@ let '' # The list of refs is sorted. The first result will be nixpkgs-unstable, the second the latest stable branch. # shellcheck disable=SC2207 - commit=($(${curl}/bin/curl "${refUrl}" -H "${githubV3Header}" | ${jq}/bin/jq -r 'sort_by(.ref) | reverse | [.[1].object.sha, .[1].ref] | @tsv')) + commit=($(${curl}/bin/curl "${refUrl}" -H "${githubV3Header}" | ${jq}/bin/jq -r 'sort_by(.ref) | reverse | [.[0].object.sha, .[0].ref] | @tsv')) tarballUrl="${tarballUrlBase}''${commit[0]}.tar.gz" tarballHash="$(${nix}/bin/nix-prefetch-url --unpack "$tarballUrl")" currentDate="$(${coreutils}/bin/date --iso)"