diff options
author | Fabian Fink <fink@h0st.space> | 2018-12-16 23:42:02 +0100 |
---|---|---|
committer | Fabian Fink <fink@h0st.space> | 2018-12-16 23:49:13 +0100 |
commit | a21de12920319a8c666d93d7a8361cb468151a2a (patch) | |
tree | 95a75b4f8ac9642fe3111d49fa1b994f7f598c29 /pkgs/tools/backup/duplicacy/default.nix | |
parent | f4d4ee3f655168de758e0759ced4109af7368e7c (diff) |
duplicacy: init at 2.1.2
Diffstat (limited to 'pkgs/tools/backup/duplicacy/default.nix')
-rw-r--r-- | pkgs/tools/backup/duplicacy/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/backup/duplicacy/default.nix b/pkgs/tools/backup/duplicacy/default.nix new file mode 100644 index 0000000000000..b7b1541761c4a --- /dev/null +++ b/pkgs/tools/backup/duplicacy/default.nix @@ -0,0 +1,33 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "duplicacy-${version}"; + 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 = '' + mkdir -p $bin/bin + cp 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 ]; + }; +} |