2022-05-03 01:29:59 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, openssh, makeWrapper }:
|
2017-12-31 08:52:30 +00:00
|
|
|
|
2022-05-03 01:29:59 +00:00
|
|
|
buildGoModule rec {
|
2017-12-31 08:52:30 +00:00
|
|
|
pname = "diskrsync";
|
2022-05-03 01:29:59 +00:00
|
|
|
version = "1.3.0";
|
2017-12-31 08:52:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dop251";
|
|
|
|
repo = pname;
|
2022-05-03 01:29:59 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-hM70WD+M3jwze0IG84WTFf1caOUk2s9DQ7pR+KNIt1M=";
|
2017-12-31 08:52:30 +00:00
|
|
|
};
|
|
|
|
|
2022-05-03 01:29:59 +00:00
|
|
|
vendorSha256 = "sha256-lJaM/sC5/qmmo7Zu7nGR6ZdXa1qw4SuVxawQ+d/m+Aw=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2017-12-31 08:52:30 +00:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-03-28 07:01:13 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
wrapProgram "$out/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin
|
2018-03-28 07:01:13 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 08:52:30 +00:00
|
|
|
description = "Rsync for block devices and disk images";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dop251/diskrsync";
|
2017-12-31 08:52:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|