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:
Joachim Fasting 2015-03-25 23:24:27 +01:00
parent e1f6d349ec
commit cf74e83057

View File

@ -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 = {