2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, zfs
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zfsbackup";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "unstable-2021-05-26";
|
|
|
|
rev = "2d4534b920d3c57552667e1c6da9978b3a9278f0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "someone1";
|
|
|
|
repo = "zfsbackup-go";
|
|
|
|
inherit rev;
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-slVwXXGLvq+eAlqzD8p1fnc17CGUBY0Z68SURBBuf2k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
vendorSha256 = "sha256-jpxp8RKDBrkBBaY89QnKYGWFI/DUURUVX8cPJ/qoLrg=";
|
|
|
|
|
|
|
|
ldflags = [ "-w" "-s" ];
|
|
|
|
|
|
|
|
# Tests require loading the zfs kernel module.
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backup ZFS snapshots to cloud storage such as Google, Amazon, Azure, etc";
|
|
|
|
homepage = "https://github.com/someone1/zfsbackup-go";
|
|
|
|
license = licenses.mit;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ xfix ];
|
|
|
|
platforms = platforms.linux;
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "zfsbackup-go";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|