2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scsh, rsync, unison }:
|
2017-10-29 22:13:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "usync";
|
|
|
|
version = "0.0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebzzry";
|
2021-01-26 13:17:27 +00:00
|
|
|
repo = "usync";
|
|
|
|
rev = "99f11b0c196a81843f55ca3456abcb85149b6d51";
|
|
|
|
sha256 = "16i1q8f0jmfd43rb8d70l2b383vr5ib4kh7iq3yd345q7xjz9c2j";
|
2017-10-29 22:13:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 555 -Dt $out/bin $pname
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/bin/$pname --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
|
|
|
|
substituteInPlace $out/bin/$pname --replace "(rsync " "(${rsync}/bin/rsync "
|
|
|
|
substituteInPlace $out/bin/$pname --replace "(unison " "(${unison}/bin/unison "
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ebzzry/usync";
|
2017-10-29 22:13:31 +00:00
|
|
|
description = "A simple site-to-site synchronization tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
}
|