1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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