nixpkgs/pkgs/applications/networking/sync/rsync/rrsync.nix
ryanfitzsimon f203d50d09 rrsync: Make perl a run-time dependency (#71344)
perl is a run-time dependency, so it should be in buildInputs rather
than nativeBuildInputs.

This has been preventing patchShebangsAuto() in fixupOutputHooks from
patching the /usr/bin/perl interpreter shebang in $out/bin/rrsync since
61bc03c017.

Resolves #71198
2019-10-19 11:33:28 +02:00

33 lines
730 B
Nix

{ stdenv, fetchurl, perl, rsync }:
let
base = import ./base.nix { inherit stdenv fetchurl; };
in
stdenv.mkDerivation {
name = "rrsync-${base.version}";
src = base.src;
buildInputs = [ rsync perl ];
# Skip configure and build phases.
# We just want something from the support directory
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";
maintainers = [ stdenv.lib.maintainers.kampfschlaefer ];
};
}