File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 24
24
- name : Install wal-g 2 from nix binary cache
25
25
become : yes
26
26
shell : |
27
- sudo -u wal-g bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#wal-g"
27
+ sudo -u wal-g bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#wal-g-2 "
28
28
when : stage2_nix
29
29
30
30
- name : Install wal-g 3 from nix binary cache
35
35
36
36
- name : Create symlink for wal-g from Nix profile to /usr/local/bin
37
37
ansible.builtin.file :
38
- src : /home/wal-g/.nix-profile/bin/wal-g
38
+ src : /home/wal-g/.nix-profile/bin/wal-g-2
39
39
dest : /usr/local/bin/wal-g
40
40
state : link
41
41
force : yes # This will replace existing file/symlink if it exists
Original file line number Diff line number Diff line change 87
87
sfcgal = pkgs . callPackage ./nix/ext/sfcgal/sfcgal.nix { } ;
88
88
supabase-groonga = pkgs . callPackage ./nix/supabase-groonga.nix { } ;
89
89
mecab-naist-jdic = pkgs . callPackage ./nix/ext/mecab-naist-jdic/default.nix { } ;
90
- inherit ( pkgs . callPackage ./nix/wal-g.nix { } ) wal-g wal-g-3 ;
90
+ inherit ( pkgs . callPackage ./nix/wal-g.nix { } ) wal-g-2 wal-g-3 ;
91
91
# Our list of PostgreSQL extensions which come from upstream Nixpkgs.
92
92
# These are maintained upstream and can easily be used here just by
93
93
# listing their name. Anytime the version of nixpkgs is upgraded, these
406
406
# PostgreSQL versions.
407
407
psql_15 = postgresVersions . psql_15 ;
408
408
psql_orioledb-17 = postgresVersions . psql_orioledb-17 ;
409
- wal-g = wal-g ;
409
+ wal-g-2 = wal-g-2 ;
410
410
wal-g-3 = wal-g-3 ;
411
411
sfcgal = sfcgal ;
412
412
pg_prove = pkgs . perlPackages . TAPParserSourceHandlerpgTAP ;
Original file line number Diff line number Diff line change 8
8
} :
9
9
10
10
let
11
- walGCommon = { version , vendorHash , sha256 } :
11
+ walGCommon = { version , vendorHash , sha256 , majorVersion } :
12
12
buildGoModule rec {
13
- pname = "wal-g" ;
13
+ pname = "wal-g- ${ majorVersion } " ;
14
14
inherit version ;
15
15
16
16
src = fetchFromGitHub {
61
61
in
62
62
{
63
63
# wal-g v2.0.1
64
- wal-g = walGCommon {
64
+ wal-g-2 = walGCommon {
65
65
version = "2.0.1" ;
66
66
sha256 = "sha256-5mwA55aAHwEFabGZ6c3pi8NLcYofvoe4bb/cFj7NWok=" ;
67
67
vendorHash = "sha256-BbQuY6r30AkxlCZjY8JizaOrqEBdv7rIQet9KQwYB/g=" ;
68
+ majorVersion = "2" ;
68
69
} ;
69
70
70
71
# wal-g v3.0.5
71
72
wal-g-3 = walGCommon {
72
73
version = "3.0.5" ;
73
74
sha256 = "sha256-wVr0L2ZXMuEo6tc2ajNzPinVQ8ZVzNOSoaHZ4oFsA+U=" ;
74
75
vendorHash = "sha256-YDLAmRfDl9TgbabXj/1rxVQ052NZDg3IagXVTe5i9dw=" ;
76
+ majorVersion = "3" ;
75
77
} ;
76
78
}
You can’t perform that action at this time.
0 commit comments