mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
457e267206
This release fixes CVE-2022-29154: https://download.samba.org/pub/rsync/NEWS#3.2.5 Remove enableCopyDevicesPatch because --copy-devices was included in rsync 3.2.4: https://download.samba.org/pub/rsync/NEWS#3.2.4:~:text=Added%20the%20%2D%2Dcopy%2Ddevices%20option
32 lines
706 B
Nix
32 lines
706 B
Nix
{ stdenv, python3, rsync }:
|
|
|
|
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
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
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
|
|
'';
|
|
|
|
meta = rsync.meta // {
|
|
description = "A helper to run rsync-only environments from ssh-logins";
|
|
};
|
|
}
|