2021-01-25 09:26:54 +01:00
|
|
|
{ buildGoPackage, fetchFromGitHub, lib, openssh, makeWrapper }:
|
2017-12-31 09:52:30 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "diskrsync";
|
2019-09-05 23:09:07 +02:00
|
|
|
version = "unstable-2019-01-02";
|
2017-12-31 09:52:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dop251";
|
|
|
|
repo = pname;
|
2019-09-05 23:09:07 +02:00
|
|
|
rev = "e8598ef71038527a8a77d1a6cf2a73cfd96d9139";
|
|
|
|
sha256 = "1dqpmc4hp81knhdk3mrmwdr66xiibsvj5lagbm5ciajg9by45mcs";
|
2017-12-31 09:52:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/dop251/diskrsync";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2018-03-28 09:01:13 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|