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.

32 lines
706 B
Nix
Raw Normal View History

2022-07-12 10:17:39 +00:00
{ stdenv, python3, rsync }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rrsync";
inherit (rsync) version src;
buildInputs = [
rsync
(python3.withPackages (pythonPackages: with pythonPackages; [ braceexpand ]))
];
# 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";
};
}