1
0
Fork 0

some notes on how we couldn't make it smaller

This commit is contained in:
Daniel Barlow 2023-04-19 22:03:18 +01:00
parent c6b8a8488f
commit c7aa8c7756
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,10 @@ let
preBuild = '' preBuild = ''
makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN") 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 = makeFlags =
builtins.filter (x: (builtins.match "(PLAT|MYLIBS).*" x) == null) builtins.filter (x: (builtins.match "(PLAT|MYLIBS).*" x) == null)
o.makeFlags; o.makeFlags;
@ -41,6 +44,9 @@ extraPkgs // {
]; ];
}); });
# openssl is reqired by ntp
rsyncSmall = prev.rsync.overrideAttrs(o: { rsyncSmall = prev.rsync.overrideAttrs(o: {
configureFlags = o.configureFlags ++ [ configureFlags = o.configureFlags ++ [
"--disable-openssl" "--disable-openssl"