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

31 lines
791 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";
2021-05-11 19:08:22 +00:00
version = "unstable-2021-04-07";
2021-04-02 17:30:52 +00:00
src = fetchFromGitHub {
owner = "leijurv";
repo = "gb";
2021-05-11 19:08:22 +00:00
rev = "904813bf0bbce048af5795618d58c0b1953f9ff8";
sha256 = "111jrcv4x38sc19xha5q3pd2297s13qh1maa7sa1k09hgypvgsxf";
2021-04-02 17:30:52 +00:00
};
vendorSha256 = "0m2aa6p04b4fs7zncar1mlykc94pp527phv71cdsbx58jgsm1jnx";
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";
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
};
}