2021-05-11 21:08:22 +02:00
|
|
|
{ lib, makeWrapper, buildGoModule, fetchFromGitHub, lepton }:
|
2021-04-02 19:30:52 +02:00
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "gb-backup";
|
2021-10-30 00:12:12 +02:00
|
|
|
version = "unstable-2021-10-27";
|
2021-04-02 19:30:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leijurv";
|
|
|
|
repo = "gb";
|
2021-10-30 00:12:12 +02:00
|
|
|
rev = "61383d445af7b035fb8e1df0cacc424340dd16df";
|
|
|
|
sha256 = "sha256-YRrD2gW+gzxD2JwadCbF/SBSsHeeGPsa8kKZHHAytVo=";
|
2021-04-02 19:30:52 +02:00
|
|
|
};
|
|
|
|
|
2021-10-30 00:12:12 +02:00
|
|
|
vendorSha256 = "sha256-H3Zf4VNJVX9C3GTeqU4YhNqCIQz1R55MfhrygDgJTxc=";
|
2021-04-02 19:30:52 +02:00
|
|
|
|
2021-05-11 21:08:22 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
checkInputs = [ lepton ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/gb --prefix PATH : ${lib.makeBinPath [ lepton ]}
|
|
|
|
'';
|
2021-04-02 19:30:52 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Gamer Backup, a super opinionated cloud backup system";
|
2021-10-25 08:19:57 +02:00
|
|
|
homepage = "https://github.com/leijurv/gb";
|
2021-04-02 19:30:52 +02:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ babbaj ];
|
2021-05-11 21:08:22 +02:00
|
|
|
platforms = platforms.unix;
|
2021-04-02 19:30:52 +02:00
|
|
|
};
|
|
|
|
}
|