nixpkgs/pkgs/tools/backup/gamerbackup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
837 B
Nix
Raw Normal View History

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