at 23.05-pre 34 lines 841 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, zfs 5}: 6 7buildGoModule rec { 8 pname = "zfsbackup"; 9 version = "unstable-2022-09-23"; 10 rev = "a30f1a44bcae5f64cfb36a12926242a968a759c6"; 11 12 src = fetchFromGitHub { 13 owner = "someone1"; 14 repo = "zfsbackup-go"; 15 inherit rev; 16 sha256 = "sha256-ZJ7gtT4AdMLEs2+hJa2Sia0hSoQd3CftdqRsH/oJxd8="; 17 }; 18 19 vendorSha256 = "sha256-aYAficUFYYhZygfQZyczP49CeouAKKZJW8IFlkFh9lI="; 20 21 ldflags = [ "-w" "-s" ]; 22 23 # Tests require loading the zfs kernel module. 24 doCheck = false; 25 26 meta = with lib; { 27 description = "Backup ZFS snapshots to cloud storage such as Google, Amazon, Azure, etc"; 28 homepage = "https://github.com/someone1/zfsbackup-go"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ xfix ]; 31 platforms = platforms.linux; 32 mainProgram = "zfsbackup-go"; 33 }; 34}