1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/tools/backup/wal-g/default.nix
zowoq c217a1a7e8 wal-g: remove Security
Not needed now that Security is propagated via go 0bba7474b3
2020-04-13 13:10:04 +10:00

35 lines
876 B
Nix

{ stdenv, buildGoModule, fetchFromGitHub, brotli }:
buildGoModule rec {
pname = "wal-g";
version = "0.2.15";
src = fetchFromGitHub {
owner = "wal-g";
repo = "wal-g";
rev = "v${version}";
sha256 = "1hslhs9i4wib6c74gdq9yail958ff1y11pymjww2xr84wkwd9v7i";
};
modSha256 = "0kwl5gwc5gc0cq2gldg13nvswp9wd90xiv1qb3g8yxcczywkpmrm";
buildInputs = [ brotli ];
doCheck = true;
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}" ];
postInstall = ''
mv $out/bin/pg $out/bin/wal-g
'';
meta = {
homepage = "https://github.com/wal-g/wal-g";
license = stdenv.lib.licenses.asl20;
description = "An archival restoration tool for PostgreSQL";
maintainers = [ stdenv.lib.maintainers.ocharles ];
};
}