2018-12-16 22:42:02 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-12-17 11:34:39 +00:00
|
|
|
pname = "duplicacy";
|
2019-11-01 15:04:24 +00:00
|
|
|
version = "2.3.0";
|
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}";
|
2019-11-01 15:04:24 +00:00
|
|
|
sha256 = "12swp3kbwkmwn3g2mp964m60kabmz0ip7kkhvhiqq7k74nxzj312";
|
2018-12-16 22:42:02 +00:00
|
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildPhase = ''
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
go build duplicacy/duplicacy_main.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-12-17 11:34:39 +00:00
|
|
|
install -D duplicacy_main $bin/bin/duplicacy
|
2018-12-16 22:42:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|