1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/tools/backup/duplicacy/default.nix
Jörg Thalheim 9e293b3bdb
Apply suggestions from code review
Co-Authored-By: ffinkdevs <fink@h0st.space>
2018-12-17 12:34:39 +01:00

33 lines
799 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "duplicacy";
version = "2.1.2";
goPackagePath = "github.com/gilbertchen/duplicacy/";
src = fetchFromGitHub {
owner = "gilbertchen";
repo = "duplicacy";
rev = "v${version}";
sha256 = "0v3rk4da4b6dhqq8zsr4z27wd8p7crxapkn265kwpsaa99xszzbv";
};
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 ];
};
}