2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scsh, rsync, unison }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "usync";
|
|
|
|
version = "0.0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebzzry";
|
2021-02-13 14:23:35 +00:00
|
|
|
repo = "usync";
|
|
|
|
rev = "99f11b0c196a81843f55ca3456abcb85149b6d51";
|
|
|
|
sha256 = "16i1q8f0jmfd43rb8d70l2b383vr5ib4kh7iq3yd345q7xjz9c2j";
|
2020-04-24 23:36:52 +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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ebzzry/usync";
|
|
|
|
description = "A simple site-to-site synchronization tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
}
|