2018-03-28 08:01:13 +01:00
|
|
|
{ buildGoPackage, fetchFromGitHub, stdenv, openssh, makeWrapper }:
|
2017-12-31 08:52:30 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "diskrsync";
|
2019-09-05 22:09:07 +01:00
|
|
|
version = "unstable-2019-01-02";
|
2017-12-31 08:52:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dop251";
|
|
|
|
repo = pname;
|
2019-09-05 22:09:07 +01:00
|
|
|
rev = "e8598ef71038527a8a77d1a6cf2a73cfd96d9139";
|
|
|
|
sha256 = "1dqpmc4hp81knhdk3mrmwdr66xiibsvj5lagbm5ciajg9by45mcs";
|
2017-12-31 08:52:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/dop251/diskrsync";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2018-03-28 08:01:13 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
preFixup = ''
|
2018-04-22 20:43:39 +01:00
|
|
|
wrapProgram "$bin/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin
|
2018-03-28 08:01:13 +01:00
|
|
|
'';
|
|
|
|
|
2017-12-31 08:52:30 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Rsync for block devices and disk images";
|
|
|
|
homepage = https://github.com/dop251/diskrsync;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|