2022-06-23 21:13:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2019-10-17 12:35:16 +00:00
|
|
|
|
2022-06-23 21:13:04 +00:00
|
|
|
buildGoModule rec {
|
2019-10-17 12:35:16 +00:00
|
|
|
pname = "zfsbackup";
|
2022-10-03 04:00:47 +00:00
|
|
|
version = "unstable-2022-09-23";
|
|
|
|
rev = "a30f1a44bcae5f64cfb36a12926242a968a759c6";
|
2019-10-17 12:35:16 +00:00
|
|
|
|
2019-10-26 12:58:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "someone1";
|
|
|
|
repo = "zfsbackup-go";
|
2019-10-17 12:35:16 +00:00
|
|
|
inherit rev;
|
2022-10-03 04:00:47 +00:00
|
|
|
sha256 = "sha256-ZJ7gtT4AdMLEs2+hJa2Sia0hSoQd3CftdqRsH/oJxd8=";
|
2019-10-17 12:35:16 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-aYAficUFYYhZygfQZyczP49CeouAKKZJW8IFlkFh9lI=";
|
2022-06-23 21:13:04 +00:00
|
|
|
|
|
|
|
ldflags = [ "-w" "-s" ];
|
|
|
|
|
|
|
|
# Tests require loading the zfs kernel module.
|
|
|
|
doCheck = false;
|
2019-10-17 12:35:16 +00:00
|
|
|
|
2019-10-24 21:21:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-17 12:35:16 +00:00
|
|
|
description = "Backup ZFS snapshots to cloud storage such as Google, Amazon, Azure, etc";
|
|
|
|
homepage = "https://github.com/someone1/zfsbackup-go";
|
2019-10-24 21:21:33 +00:00
|
|
|
license = licenses.mit;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2022-06-23 21:13:04 +00:00
|
|
|
platforms = platforms.linux;
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "zfsbackup-go";
|
2019-10-17 12:35:16 +00:00
|
|
|
};
|
|
|
|
}
|