From cf74e83057999ef669b79aea687d5c28bf4e445a Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Wed, 25 Mar 2015 23:24:27 +0100 Subject: [PATCH] nano: add option to do tiny build Enabling tiny build reduces the binary to 107K on my system (more than 50% size reduction). --- pkgs/applications/editors/nano/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 1c0238451995..84c1a79591bc 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 = {