2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
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-10-21 18:38:19 +00:00
|
|
|
version = "unstable-2022-09-23";
|
|
|
|
rev = "a30f1a44bcae5f64cfb36a12926242a968a759c6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "someone1";
|
|
|
|
repo = "zfsbackup-go";
|
|
|
|
inherit rev;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-ZJ7gtT4AdMLEs2+hJa2Sia0hSoQd3CftdqRsH/oJxd8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
vendorSha256 = "sha256-aYAficUFYYhZygfQZyczP49CeouAKKZJW8IFlkFh9lI=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|