From c7aa8c7756ab493e3a0f2bc851904c0b50057008 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 19 Apr 2023 22:03:18 +0100 Subject: [PATCH] some notes on how we couldn't make it smaller --- overlay.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/overlay.nix b/overlay.nix index f00eecee..27a4e38b 100644 --- a/overlay.nix +++ b/overlay.nix @@ -7,7 +7,10 @@ let preBuild = '' makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN") ''; - + # lua in nixpkgs has a postInstall stanza that assumes only + # one output, we need to override that if we're going to + # convert to multi-output + # outputs = ["bin" "man" "out"]; makeFlags = builtins.filter (x: (builtins.match "(PLAT|MYLIBS).*" x) == null) o.makeFlags; @@ -41,6 +44,9 @@ extraPkgs // { ]; }); + # openssl is reqired by ntp + + rsyncSmall = prev.rsync.overrideAttrs(o: { configureFlags = o.configureFlags ++ [ "--disable-openssl"