2021-05-20 23:08:51 +00:00
|
|
|
{ lib, makeWrapper, buildGoModule, fetchFromGitHub, lepton }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "gb-backup";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "unstable-2021-08-16";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leijurv";
|
|
|
|
repo = "gb";
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "fa996208d06766bf523686fbe5831628130d80f7";
|
|
|
|
sha256 = "1vggl8d69sf4z2lmixfndwwd6l9gi0fkkrxga7v4w7a7yr96b1vp";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "0m2aa6p04b4fs7zncar1mlykc94pp527phv71cdsbx58jgsm1jnx";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
checkInputs = [ lepton ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/gb --prefix PATH : ${lib.makeBinPath [ lepton ]}
|
|
|
|
'';
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Gamer Backup, a super opinionated cloud backup system";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/leijurv/gb";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ babbaj ];
|
2021-05-20 23:08:51 +00:00
|
|
|
platforms = platforms.unix;
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|