mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
b4ac8fb39b
Let's keep the original rsync maintainers only on rsync, as I haven't noticed them wanting to maintain rrsync as well.
34 lines
762 B
Nix
34 lines
762 B
Nix
{ stdenv, fetchurl, perl, rsync }:
|
|
|
|
let
|
|
base = import ./base.nix { inherit stdenv fetchurl; };
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "rrsync-${base.version}";
|
|
|
|
src = base.src;
|
|
|
|
buildInputs = [ rsync ];
|
|
nativeBuildInputs = [perl];
|
|
|
|
# Skip configure and build phases.
|
|
# We just want something from the support directory
|
|
configurePhase = "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 ];
|
|
};
|
|
}
|