nixpkgs/pkgs/applications/networking/sync/rsync/rrsync.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
653 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, python, rsync, fetchpatch }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rrsync";
2022-05-27 13:39:03 +00:00
inherit (rsync) version srcs;
buildInputs = [ rsync python ];
# Skip configure and build phases.
# We just want something from the support directory
2019-06-19 15:36:06 +00:00
dontConfigure = true;
dontBuild = true;
2022-05-27 13:39:03 +00:00
inherit (rsync) patches;
postPatch = ''
substituteInPlace support/rrsync --replace /usr/bin/rsync ${rsync}/bin/rsync
'';
installPhase = ''
mkdir -p $out/bin
cp support/rrsync $out/bin
chmod a+x $out/bin/rrsync
'';
2022-05-27 13:39:03 +00:00
meta = rsync.meta // {
description = "A helper to run rsync-only environments from ssh-logins";
};
}