2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 02:34:14 +00:00
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, lzip
|
2017-09-08 12:03:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "moe";
|
2022-02-12 13:01:01 +00:00
|
|
|
version = "1.12";
|
2017-09-08 12:03:49 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://gnu/moe/${pname}-${version}.tar.lz";
|
2022-02-12 13:01:01 +00:00
|
|
|
sha256 = "sha256-iohfK+Qm+OBK05yWASvYYJVAhaI3RPJFFmMWiCbXoeg=";
|
2017-09-08 12:03:49 +00:00
|
|
|
};
|
|
|
|
|
2017-11-08 11:20:42 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace window_vector.cc --replace \
|
|
|
|
"insert( 0U, 1," \
|
|
|
|
"insert( 0U, 1U,"
|
|
|
|
'';
|
|
|
|
|
2017-09-08 12:03:49 +00:00
|
|
|
nativeBuildInputs = [ lzip ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-08 12:03:49 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/moe/";
|
2017-09-08 12:03:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2018-05-01 03:44:14 +00:00
|
|
|
platforms = platforms.unix;
|
2017-09-08 12:03:49 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
# TODO: a configurable, global moerc file
|