depot/third_party/nixpkgs/pkgs/tools/backup/duplicacy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
799 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "duplicacy";
version = "2.3.0";
goPackagePath = "github.com/gilbertchen/duplicacy";
src = fetchFromGitHub {
owner = "gilbertchen";
repo = "duplicacy";
rev = "v${version}";
sha256 = "12swp3kbwkmwn3g2mp964m60kabmz0ip7kkhvhiqq7k74nxzj312";
};
goDeps = ./deps.nix;
buildPhase = ''
cd go/src/${goPackagePath}
go build duplicacy/duplicacy_main.go
'';
installPhase = ''
install -D duplicacy_main $bin/bin/duplicacy
'';
meta = with lib; {
homepage = "https://duplicacy.com";
description = "A new generation cloud backup tool";
platforms = platforms.linux ++ platforms.darwin;
license = lib.licenses.unfree;
maintainers = with maintainers; [ ffinkdevs ];
};
}