Merge pull request #6986 from joachifm/nano-2_4

Nano 2.4
This commit is contained in:
William A. Kennington III 2015-03-25 21:47:44 -07:00
commit 247cf8f37a

View File

@ -1,22 +1,33 @@
{ stdenv, fetchurl, ncurses, gettext }: { stdenv, fetchurl
, ncurses
, gettext ? null
, enableNls ? false
, enableTiny ? false
}:
stdenv.mkDerivation (rec { assert enableNls -> (gettext != null);
pname = "nano";
version = "2.3.6";
name = "${pname}-${version}"; with stdenv.lib;
stdenv.mkDerivation rec {
name = "nano-${version}";
version = "2.4.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/nano/${name}.tar.gz"; url = "mirror://gnu/nano/${name}.tar.gz";
sha256 = "a74bf3f18b12c1c777ae737c0e463152439e381aba8720b4bc67449f36a09534"; sha256 = "1gbm9bcv4k55y01r5q8a8a9s3yrrgq3z5jxxiij3wl404r8gnxjh";
}; };
buildInputs = [ ncurses ] ++ optional enableNls gettext;
buildInputs = [ ncurses gettext ]; configureFlags = ''
--sysconfdir=/etc
configureFlags = "sysconfdir=/etc"; ${optionalString (!enableNls) "--disable-nls"}
${optionalString enableTiny "--enable-tiny"}
'';
meta = { meta = {
homepage = http://www.nano-editor.org/; homepage = http://www.nano-editor.org/;
description = "A small, user-friendly console text editor"; description = "A small, user-friendly console text editor";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ joachifm ];
platforms = platforms.all;
}; };
}) }