gb-backup: unstable-2021-10-27 -> 0-unstable-2026-06-05

Upstream now embeds Lepton compression via lepton_jpeg_go and no longer
requires the external dropbox/lepton binary.

Assisted-by: Grok 4.3 (xAI)
This commit is contained in:
lucasew 2026-06-29 18:45:33 -03:00
commit 7bd2581099

View file

@ -1,36 +1,34 @@
{
lib,
makeWrapper,
buildGoModule,
fetchFromGitHub,
lepton,
nix-update-script,
}:
buildGoModule {
buildGoModule (finalAttrs: {
pname = "gb-backup";
version = "unstable-2021-10-27";
version = "0-unstable-2026-06-05";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "leijurv";
repo = "gb";
rev = "61383d445af7b035fb8e1df0cacc424340dd16df";
sha256 = "sha256-YRrD2gW+gzxD2JwadCbF/SBSsHeeGPsa8kKZHHAytVo=";
rev = "d388723a2cbed495bcf1793aa0958a9ba4f3d6b9";
hash = "sha256-um2wMfHdEL3GkILtM7R/bNW17pknq0M/CCfHPlu6/58=";
};
vendorHash = "sha256-H3Zf4VNJVX9C3GTeqU4YhNqCIQz1R55MfhrygDgJTxc=";
vendorHash = "sha256-fjOIp2LUBaAPAPMxU2T+qbIQZgmVa0vNPYzW2hOsBr8=";
nativeBuildInputs = [ makeWrapper ];
nativeCheckInputs = [ lepton ];
postFixup = ''
wrapProgram $out/bin/gb --prefix PATH : ${lib.makeBinPath [ lepton ]}
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = {
description = "Gamer Backup, a super opinionated cloud backup system";
homepage = "https://github.com/leijurv/gb";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ babbaj ];
mainProgram = "gb";
};
}
})