diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-25 23:24:27 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-25 23:31:21 +0100 |
commit | cf74e83057999ef669b79aea687d5c28bf4e445a (patch) | |
tree | c3ffb69b461e596d2e06c870996d8593d0af6906 /pkgs/applications/editors/nano/default.nix | |
parent | e1f6d349ec0435b116e1fe810c95f12076f60d54 (diff) | |
download | nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar.gz nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar.bz2 nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar.lz nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar.xz nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.tar.zst nixpkgs-cf74e83057999ef669b79aea687d5c28bf4e445a.zip |
nano: add option to do tiny build
Enabling tiny build reduces the binary to 107K on my system (more than 50% size reduction).
Diffstat (limited to 'pkgs/applications/editors/nano/default.nix')
-rw-r--r-- | pkgs/applications/editors/nano/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 1c023845199..84c1a79591b 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -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 = { |