2018-03-28 08:01:13 +01:00
|
|
|
{ buildGoPackage, fetchFromGitHub, stdenv, openssh, makeWrapper }:
|
2017-12-31 08:52:30 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "diskrsync";
|
2018-02-04 10:03:01 +00:00
|
|
|
version = "unstable-2018-02-03";
|
2017-12-31 08:52:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dop251";
|
|
|
|
repo = pname;
|
2018-02-04 10:03:01 +00:00
|
|
|
rev = "2f36bd6e5084ce16c12a2ee216ebb2939a7d5730";
|
|
|
|
sha256 = "1rpfk7ds4lpff30aq4d8rw7g9j4bl2hd1bvcwd1pfxalp222zkxn";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|