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