File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 79
79
sfcgal = pkgs . callPackage ./nix/ext/sfcgal/sfcgal.nix { } ;
80
80
supabase-groonga = pkgs . callPackage ./nix/supabase-groonga.nix { } ;
81
81
mecab-naist-jdic = pkgs . callPackage ./nix/ext/mecab-naist-jdic/default.nix { } ;
82
+ wal-g = pkgs . callPackage ./nix/wal-g.nix { } ;
82
83
# Our list of PostgreSQL extensions which come from upstream Nixpkgs.
83
84
# These are maintained upstream and can easily be used here just by
84
85
# listing their name. Anytime the version of nixpkgs is upgraded, these
397
398
# PostgreSQL versions.
398
399
psql_15 = postgresVersions . psql_15 ;
399
400
psql_orioledb-17 = postgresVersions . psql_orioledb-17 ;
401
+ wal-g = wal-g ;
400
402
sfcgal = sfcgal ;
401
403
pg_prove = pkgs . perlPackages . TAPParserSourceHandlerpgTAP ;
402
404
inherit postgresql_15 postgresql_orioledb-17 ;
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ buildGoModule ,
4
+ fetchFromGitHub ,
5
+ brotli ,
6
+ libsodium ,
7
+ installShellFiles ,
8
+ } :
9
+
10
+ buildGoModule rec {
11
+ pname = "wal-g" ;
12
+ version = "3.0.5" ;
13
+
14
+ src = fetchFromGitHub {
15
+ owner = "wal-g" ;
16
+ repo = "wal-g" ;
17
+ rev = "v${ version } " ;
18
+ sha256 = "sha256-wVr0L2ZXMuEo6tc2ajNzPinVQ8ZVzNOSoaHZ4oFsA+U=" ;
19
+ } ;
20
+
21
+ vendorHash = "sha256-YDLAmRfDl9TgbabXj/1rxVQ052NZDg3IagXVTe5i9dw=" ;
22
+
23
+ nativeBuildInputs = [ installShellFiles ] ;
24
+
25
+ buildInputs = [
26
+ brotli
27
+ libsodium
28
+ ] ;
29
+
30
+ subPackages = [ "main/pg" ] ;
31
+
32
+ tags = [
33
+ "brotli"
34
+ "libsodium"
35
+ ] ;
36
+
37
+ ldflags = [
38
+ "-s"
39
+ "-w"
40
+ "-X github.com/wal-g/wal-g/cmd/pg.walgVersion=${ version } "
41
+ "-X github.com/wal-g/wal-g/cmd/pg.gitRevision=${ src . rev } "
42
+ ] ;
43
+
44
+ postInstall = ''
45
+ mv $out/bin/pg $out/bin/wal-g
46
+ installShellCompletion --cmd wal-g \
47
+ --bash <($out/bin/wal-g completion bash) \
48
+ --zsh <($out/bin/wal-g completion zsh)
49
+ '' ;
50
+
51
+ meta = with lib ; {
52
+ homepage = "https://github.com/wal-g/wal-g" ;
53
+ license = licenses . asl20 ;
54
+ description = "Archival restoration tool for PostgreSQL" ;
55
+ mainProgram = "wal-g" ;
56
+ maintainers = [ ] ;
57
+ } ;
58
+ }
You can’t perform that action at this time.
0 commit comments