nano: add option to do tiny build
Enabling tiny build reduces the binary to 107K on my system (more than 50% size reduction).
This commit is contained in:
parent
e1f6d349ec
commit
cf74e83057
@ -2,6 +2,7 @@
|
||||
, ncurses
|
||||
, gettext ? null
|
||||
, enableNls ? false
|
||||
, enableTiny ? false
|
||||
}:
|
||||
|
||||
assert enableNls -> (gettext != null);
|
||||
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = ''
|
||||
--sysconfdir=/etc
|
||||
${optionalString (!enableNls) "--disable-nls"}
|
||||
${optionalString enableTiny "--enable-tiny"}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user