Skip to content

Commit b548002

Browse files
committed
chore: cleanup
1 parent 8dd0234 commit b548002

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

nix/ext/wrappers/default.nix

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
, jq
1111
}:
1212

13-
let
14-
gitTags = builtins.fromJSON (builtins.readFile (builtins.fetchurl {
15-
url = "https://api.github.com/repos/supabase/wrappers/tags";
16-
sha256 = "0pvavn0f8wnaszq4bmvjkadm6xbvf91rbhcmmgjasqajb69vskv9"; # Replace with actual hash
17-
}));
18-
in
1913
buildPgrxExtension_0_11_3 rec {
2014
pname = "supabase-wrappers";
2115
version = "0.4.1";
22-
# update this when the wrappers version is updated
16+
# update the following array when the wrappers version is updated
2317
# required to ensure that extensions update scripts from previous versions are generated
2418
previousVersions = ["0.4.0" "0.3.1" "0.3.0" "0.2.0" "0.1.19" "0.1.18" "0.1.17" "0.1.16" "0.1.15" "0.1.14" "0.1.12" "0.1.11" "0.1.10" "0.1.9" "0.1.8" "0.1.7" "0.1.6" "0.1.5" "0.1.4" "0.1.1" "0.1.0"];
2519
inherit postgresql;
@@ -29,7 +23,7 @@ buildPgrxExtension_0_11_3 rec {
2923
rev = "v${version}";
3024
hash = "sha256-AU9Y43qEMcIBVBThu+Aor1HCtfFIg+CdkzK9IxVdkzM=";
3125
};
32-
nativeBuildInputs = [ pkg-config cargo jq ];
26+
nativeBuildInputs = [ pkg-config cargo ];
3327
buildInputs = [ openssl ] ++ lib.optionals (stdenv.isDarwin) [
3428
darwin.apple_sdk.frameworks.CoreFoundation
3529
darwin.apple_sdk.frameworks.Security
@@ -65,7 +59,7 @@ buildPgrxExtension_0_11_3 rec {
6559

6660
preBuild = ''
6761
echo "Processing git tags..."
68-
echo '${builtins.concatStringsSep "," previousVersions }' | sed 's/,/\n/g' > git_tags.txt
62+
echo '${builtins.concatStringsSep "," previousVersions}' | sed 's/,/\n/g' > git_tags.txt
6963
'';
7064

7165
postInstall = ''

0 commit comments

Comments
 (0)