From fe99abc4503892e1d3774b8a37a7db1ba1e1a988 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 10 Apr 2023 20:04:23 +0100 Subject: [PATCH] shrink rsync remove openssl requirement, it uses it for "optimised assembly versions" of md5 - but only on x86/arm/sparc not mips anyway --- examples/arhcive.nix | 2 +- overlay.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/arhcive.nix b/examples/arhcive.nix index 3b08fae..375b676 100644 --- a/examples/arhcive.nix +++ b/examples/arhcive.nix @@ -193,7 +193,7 @@ in rec { in longrun { name = "rsync"; run = '' - ${pkgs.rsync}/bin/rsync --no-detach --daemon --config=${configFile} + ${pkgs.rsyncSmall}/bin/rsync --no-detach --daemon --config=${configFile} ''; dependencies = [ secrets_file diff --git a/overlay.nix b/overlay.nix index 39fc67c..d52d35d 100644 --- a/overlay.nix +++ b/overlay.nix @@ -20,6 +20,12 @@ extraPkgs // { ]; }); + rsyncSmall = prev.rsync.overrideAttrs(o: { + configureFlags = o.configureFlags ++ [ + "--disable-openssl" + ]; + }); + strace = prev.strace.override { libunwind = null; }; kexec-tools-static = prev.kexec-tools.overrideAttrs(o: {