nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 lzip,
6 ncurses,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "moe";
11 version = "1.15";
12
13 src = fetchurl {
14 url = "mirror://gnu/moe/moe-${finalAttrs.version}.tar.lz";
15 hash = "sha256-QfjIsJnOMEeUXKTgl6YNkkPpxz+7JowZShLaiw2fCmY=";
16 };
17
18 prePatch = ''
19 substituteInPlace window_vector.cc --replace \
20 "insert( 0U, 1," \
21 "insert( 0U, 1U,"
22 '';
23
24 nativeBuildInputs = [
25 lzip
26 ];
27
28 buildInputs = [
29 ncurses
30 ];
31
32 strictDeps = true;
33
34 meta = {
35 homepage = "https://www.gnu.org/software/moe/";
36 description = "Small, 8-bit clean editor";
37 longDescription = ''
38 GNU moe is a powerful, 8-bit clean, console text editor for ISO-8859 and
39 ASCII character encodings. It has a modeless, user-friendly interface,
40 online help, multiple windows, unlimited undo/redo capability, unlimited
41 line length, unlimited buffers, global search/replace (on all buffers at
42 once), block operations, automatic indentation, word wrapping, file name
43 completion, directory browser, duplicate removal from prompt histories,
44 delimiter matching, text conversion from/to UTF-8, romanization, etc.
45 '';
46 license = lib.licenses.gpl2Plus;
47 maintainers = [ ];
48 platforms = lib.platforms.unix;
49 mainProgram = "moe";
50 };
51})
52# TODO: a configurable, global moerc file