commit c7aa8c7756ab493e3a0f2bc851904c0b50057008
parent c6b8a8488f1d64e6b734fa802ce1ac451c51b01c
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 19 Apr 2023 22:03:18 +0100
some notes on how we couldn't make it smaller
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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"