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

34 lines
736 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, perl, rsync }:
let
2021-03-26 05:13:53 +00:00
base = import ./base.nix { inherit lib fetchurl; };
in
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rrsync";
version = base.version;
src = base.src;
buildInputs = [ rsync perl ];
# 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;
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
'';
meta = base.meta // {
description = "A helper to run rsync-only environments from ssh-logins";
2021-01-15 13:21:58 +00:00
maintainers = [ lib.maintainers.kampfschlaefer ];
};
}