depot/pkgs/by-name/mo/moe/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

51 lines
1.4 KiB
Nix

{ lib
, stdenv
, fetchurl
, lzip
, ncurses
}:
stdenv.mkDerivation (finalAttrs: {
pname = "moe";
version = "1.14";
src = fetchurl {
url = "mirror://gnu/moe/moe-${finalAttrs.version}.tar.lz";
hash = "sha256-9Lq9bOCuGVFvmDRU+yDTLf9xrTFjN6xr+TpCpf8gnJ0=";
};
prePatch = ''
substituteInPlace window_vector.cc --replace \
"insert( 0U, 1," \
"insert( 0U, 1U,"
'';
nativeBuildInputs = [
lzip
];
buildInputs = [
ncurses
];
strictDeps = true;
meta = {
homepage = "https://www.gnu.org/software/moe/";
description = "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.
'';
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
mainProgram = "moe";
};
})
# TODO: a configurable, global moerc file