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-12-06 16:07:01 +00:00
|
|
|
version = "unstable-2021-10-27";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leijurv";
|
|
|
|
repo = "gb";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "61383d445af7b035fb8e1df0cacc424340dd16df";
|
|
|
|
sha256 = "sha256-YRrD2gW+gzxD2JwadCbF/SBSsHeeGPsa8kKZHHAytVo=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-H3Zf4VNJVX9C3GTeqU4YhNqCIQz1R55MfhrygDgJTxc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ lepton ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|