2017-09-08 14:03:49 +02:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, lzip, ncurses
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "moe-${version}";
|
|
|
|
version = "1.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/moe/${name}.tar.lz";
|
|
|
|
sha256 = "1wsfzy0iia0c89wnx1ilzw54wqcmlp2nz8mkpvc393z0zagrx48q";
|
|
|
|
};
|
|
|
|
|
2017-11-08 12:20:42 +01:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace window_vector.cc --replace \
|
|
|
|
"insert( 0U, 1," \
|
|
|
|
"insert( 0U, 1U,"
|
|
|
|
'';
|
|
|
|
|
2017-09-08 14:03:49 +02:00
|
|
|
nativeBuildInputs = [ lzip ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A small, 8-bit clean editor";
|
|
|
|
longDescription = ''
|
|
|
|
GNU moe is a powerful, 8-bit clean, console text editor for ISO-8859 and
|
|
|
|
ASCII character encodings. It has a modeless, user-friendly interface,
|
|
|
|
online help, multiple windows, unlimited undo/redo capability, unlimited
|
|
|
|
line length, unlimited buffers, global search/replace (on all buffers at
|
|
|
|
once), block operations, automatic indentation, word wrapping, file name
|
|
|
|
completion, directory browser, duplicate removal from prompt histories,
|
|
|
|
delimiter matching, text conversion from/to UTF-8, romanization, etc.
|
|
|
|
'';
|
|
|
|
homepage = http://www.gnu.org/software/moe/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2018-05-01 05:44:14 +02:00
|
|
|
platforms = platforms.unix;
|
2017-09-08 14:03:49 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
# TODO: a configurable, global moerc file
|