2018-12-16 22:42:02 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-12-17 11:34:39 +00:00
|
|
|
pname = "duplicacy";
|
2020-12-27 23:09:32 +00:00
|
|
|
version = "2.7.2";
|
2018-12-16 22:42:02 +00:00
|
|
|
|
2019-11-01 15:04:24 +00:00
|
|
|
goPackagePath = "github.com/gilbertchen/duplicacy";
|
2018-12-16 22:42:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gilbertchen";
|
|
|
|
repo = "duplicacy";
|
|
|
|
rev = "v${version}";
|
2020-12-27 23:09:32 +00:00
|
|
|
sha256 = "0j37sqicj7rl982czqsl3ipxw7k8k4smcr63s0yklxwz7ch3353c";
|
2018-12-16 22:42:02 +00:00
|
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildPhase = ''
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
go build duplicacy/duplicacy_main.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-04-28 02:50:57 +01:00
|
|
|
install -D duplicacy_main $out/bin/duplicacy
|
2018-12-16 22:42:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://duplicacy.com";
|
2019-11-01 15:04:24 +00:00
|
|
|
description = "A new generation cloud backup tool";
|
2018-12-16 22:42:02 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ ffinkdevs ];
|
|
|
|
};
|
|
|
|
}
|