2020-08-01 17:19:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, coreutils }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kopia";
|
2020-08-11 06:29:38 +00:00
|
|
|
version = "0.6.0";
|
2020-08-01 17:19:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-11 06:29:38 +00:00
|
|
|
sha256 = "0jxl2zq3s3czz52ndq7zbj8liij0519745pbcqaj42x851c1p6mj";
|
2020-08-01 17:19:33 +00:00
|
|
|
};
|
|
|
|
|
2020-08-11 06:29:38 +00:00
|
|
|
vendorSha256 = "1npxr7gp59xv38zdx1diilfxij6lb0cmvsnzvjx6n8g0326gf2ii";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-01 17:19:33 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
# make 'vendor' writable
|
|
|
|
cp -L -r vendor tmp-vendor
|
|
|
|
rm -rf vendor
|
|
|
|
mv tmp-vendor vendor
|
|
|
|
|
|
|
|
# speakeasy hardcodes /bin/stty https://github.com/bgentry/speakeasy/issues/22
|
|
|
|
substituteInPlace vendor/github.com/bgentry/speakeasy/speakeasy_unix.go \
|
|
|
|
--replace "/bin/stty" "${coreutils}/bin/stty"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://kopia.io";
|
|
|
|
description = "Cross-platform backup tool with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bbigras ];
|
|
|
|
};
|
|
|
|
}
|