diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-25 23:21:44 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-25 23:31:20 +0100 |
commit | e1f6d349ec0435b116e1fe810c95f12076f60d54 (patch) | |
tree | 71bbc30a03bd987ba311a720920d25599a42ef31 /pkgs/applications/editors | |
parent | 1533a9aef5ff0cedce866600c9bb8327c4373f99 (diff) | |
download | nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar.gz nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar.bz2 nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar.lz nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar.xz nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.tar.zst nixlib-e1f6d349ec0435b116e1fe810c95f12076f60d54.zip |
nano: make NLS optional
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/nano/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 2e48eadb0a23..1c0238451995 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -1,4 +1,12 @@ -{ stdenv, fetchurl, ncurses, gettext }: +{ stdenv, fetchurl +, ncurses +, gettext ? null +, enableNls ? false +}: + +assert enableNls -> (gettext != null); + +with stdenv.lib; stdenv.mkDerivation rec { name = "nano-${version}"; @@ -7,12 +15,13 @@ stdenv.mkDerivation rec { url = "mirror://gnu/nano/${name}.tar.gz"; sha256 = "1gbm9bcv4k55y01r5q8a8a9s3yrrgq3z5jxxiij3wl404r8gnxjh"; }; - buildInputs = [ ncurses gettext ]; + buildInputs = [ ncurses ] ++ optional enableNls gettext; configureFlags = '' --sysconfdir=/etc + ${optionalString (!enableNls) "--disable-nls"} ''; - meta = with stdenv.lib; { + meta = { homepage = http://www.nano-editor.org/; description = "A small, user-friendly console text editor"; license = licenses.gpl3Plus; |