nixpkgs-suyu/pkgs/tools/backup/wal-g/default.nix

26 lines
601 B
Nix
Raw Normal View History

2018-11-25 09:57:22 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, brotli }:
2017-11-17 14:44:03 +01:00
buildGoPackage rec {
name = "wal-g-${version}";
2018-11-25 09:57:22 +01:00
version = "0.2.0";
src = fetchFromGitHub {
owner = "wal-g";
repo = "wal-g";
rev = "v${version}";
2018-11-25 09:57:22 +01:00
sha256 = "08lk7by1anxpd9v97xbf9443kk4n1w63zaar2nz86w8i3k3b4id9";
2017-11-17 14:44:03 +01:00
};
2018-11-25 09:57:22 +01:00
buildInputs = [ brotli ];
doCheck = true;
2017-11-17 14:44:03 +01:00
goPackagePath = "github.com/wal-g/wal-g";
meta = {
2018-09-10 01:26:41 +02:00
inherit (src.meta) homepage;
license = stdenv.lib.licenses.asl20;
2017-11-17 14:44:03 +01:00
description = "An archival restoration tool for Postgres";
maintainers = [ stdenv.lib.maintainers.ocharles ];
};
}