aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/rrsync_sudo/default.nix
blob: 7a47320b19cfde50cf766468be5a6a49e0e03959 (plain) (blame)
1
2
3
4
5
6
7
8
{ rrsync }:

rrsync.overrideAttrs(old: {
  patches = old.patches or [] ++ [ ./sudo.patch ];
  postPatch = old.postPatch + ''
    substituteInPlace support/rrsync --replace /usr/bin/sudo /run/wrappers/bin/sudo
  '';
})