mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue