1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/tools/backup/wal-g/default.nix

33 lines
858 B
Nix
Raw Normal View History

2020-08-14 05:20:00 +01:00
{ lib, buildGoModule, fetchFromGitHub, brotli }:
buildGoModule rec {
pname = "wal-g";
2020-11-13 04:20:00 +00:00
version = "0.2.18";
src = fetchFromGitHub {
owner = "wal-g";
repo = "wal-g";
rev = "v${version}";
2020-11-13 04:20:00 +00:00
sha256 = "1clsh42sgfrzyg3vr215wrpi93cb8y8ky3cb1v2l6cs4psh3py1q";
2017-11-17 13:44:03 +00:00
};
2020-11-13 04:20:00 +00:00
vendorSha256 = "1ax8niw4zfwvh5ikxnkbsjc9fdz1lziqlwig9nwrhzfp45ysbakh";
2018-11-25 08:57:22 +00:00
buildInputs = [ brotli ];
2020-02-18 09:20:00 +00:00
subPackages = [ "main/pg" ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/wal-g/wal-g/cmd/pg.WalgVersion=${version} -X github.com/wal-g/wal-g/cmd/pg.GitRevision=${src.rev}" ];
2020-02-18 09:20:00 +00:00
postInstall = ''
mv $out/bin/pg $out/bin/wal-g
2020-02-18 09:20:00 +00:00
'';
2020-08-14 05:20:00 +01:00
meta = with lib; {
2020-02-18 09:20:00 +00:00
homepage = "https://github.com/wal-g/wal-g";
2020-08-14 05:20:00 +01:00
license = licenses.asl20;
2020-02-18 09:20:00 +00:00
description = "An archival restoration tool for PostgreSQL";
2020-08-14 05:20:00 +01:00
maintainers = with maintainers; [ ocharles marsam ];
2017-11-17 13:44:03 +00:00
};
}