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