2020-04-13 04:57:41 +02:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, brotli }:
|
2018-04-09 10:39:02 +02:00
|
|
|
|
2020-03-24 10:20:00 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "wal-g";
|
2020-03-24 10:20:00 +01:00
|
|
|
version = "0.2.15";
|
2018-04-09 10:39:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-24 10:20:00 +01:00
|
|
|
owner = "wal-g";
|
|
|
|
repo = "wal-g";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1hslhs9i4wib6c74gdq9yail958ff1y11pymjww2xr84wkwd9v7i";
|
2017-11-17 14:44:03 +01:00
|
|
|
};
|
2018-04-09 10:39:02 +02:00
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = "0jjr33k27k6h27sa01ipz0aydch3i9klknqb3yq8f048zkb54gv8";
|
2018-11-25 09:57:22 +01:00
|
|
|
|
2020-04-13 04:57:41 +02:00
|
|
|
buildInputs = [ brotli ];
|
2020-02-18 10:20:00 +01:00
|
|
|
|
2020-03-24 10:20:00 +01:00
|
|
|
doCheck = true;
|
2020-02-18 10:20:00 +01:00
|
|
|
|
|
|
|
subPackages = [ "main/pg" ];
|
|
|
|
|
2020-03-24 10:20:00 +01: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 10:20:00 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-03-24 10:20:00 +01:00
|
|
|
mv $out/bin/pg $out/bin/wal-g
|
2020-02-18 10:20:00 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-17 14:44:03 +01:00
|
|
|
meta = {
|
2020-02-18 10:20:00 +01:00
|
|
|
homepage = "https://github.com/wal-g/wal-g";
|
2017-11-17 14:55:14 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2020-02-18 10:20:00 +01:00
|
|
|
description = "An archival restoration tool for PostgreSQL";
|
2017-11-17 14:44:03 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
|
|
|
};
|
2020-05-01 03:59:00 +02:00
|
|
|
}
|