2020-08-14 05:20:00 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, brotli }:
|
2018-04-09 09:39:02 +01:00
|
|
|
|
2020-03-24 09:20:00 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wal-g";
|
2020-08-14 05:20:00 +01:00
|
|
|
version = "0.2.17";
|
2018-04-09 09:39:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-24 09:20:00 +00:00
|
|
|
owner = "wal-g";
|
|
|
|
repo = "wal-g";
|
|
|
|
rev = "v${version}";
|
2020-08-14 05:20:00 +01:00
|
|
|
sha256 = "0r6vy2b3xqwa22286srwngk63sq4aza6aj7brwc130vypcps7svp";
|
2017-11-17 13:44:03 +00:00
|
|
|
};
|
2018-04-09 09:39:02 +01:00
|
|
|
|
2020-08-14 05:20:00 +01:00
|
|
|
vendorSha256 = "0r73l4kxzldca1vg5mshq6iqsxcrndcbmbp3d7i9pxyb2kig8gv5";
|
2018-11-25 08:57:22 +00:00
|
|
|
|
2020-04-13 03:57:41 +01:00
|
|
|
buildInputs = [ brotli ];
|
2020-02-18 09:20:00 +00:00
|
|
|
|
|
|
|
subPackages = [ "main/pg" ];
|
|
|
|
|
2020-03-24 09:20:00 +00:00
|
|
|
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 = ''
|
2020-03-24 09:20:00 +00:00
|
|
|
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
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|