2021-02-05 17:12:51 +00:00
|
|
|
{ buildGoPackage, fetchFromGitHub, lib, openssh, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "diskrsync";
|
|
|
|
version = "unstable-2019-01-02";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dop251";
|
|
|
|
repo = pname;
|
|
|
|
rev = "e8598ef71038527a8a77d1a6cf2a73cfd96d9139";
|
|
|
|
sha256 = "1dqpmc4hp81knhdk3mrmwdr66xiibsvj5lagbm5ciajg9by45mcs";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/dop251/diskrsync";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
wrapProgram "$out/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Rsync for block devices and disk images";
|
|
|
|
homepage = "https://github.com/dop251/diskrsync";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|