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
|
, ncurses
|
||||||
, gettext ? null
|
, gettext ? null
|
||||||
, enableNls ? false
|
, enableNls ? false
|
||||||
|
, enableTiny ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableNls -> (gettext != null);
|
assert enableNls -> (gettext != null);
|
||||||
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--sysconfdir=/etc
|
--sysconfdir=/etc
|
||||||
${optionalString (!enableNls) "--disable-nls"}
|
${optionalString (!enableNls) "--disable-nls"}
|
||||||
|
${optionalString enableTiny "--enable-tiny"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user