nixpkgs/pkgs/tools/backup/duplicacy/default.nix

33 lines
799 B
Nix
Raw Normal View History

2018-12-16 22:42:02 +00:00
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
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 = ''
install -D duplicacy_main $out/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 ];
};
}