about summary refs log tree commit diff
path: root/pkgs/by-name/mo/moe
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2024-01-24 11:45:59 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2024-01-24 11:45:59 -0300
commite1fda1ae4261365d2f49f552b5aac816ca146027 (patch)
treee75d19fd468f3afdfee79be250f3b592c633ac2a /pkgs/by-name/mo/moe
parent552a10f4bd3e1c9b940d51cbba424df34fbd6140 (diff)
moe: migrate to by-name
Diffstat (limited to 'pkgs/by-name/mo/moe')
-rw-r--r--pkgs/by-name/mo/moe/package.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/by-name/mo/moe/package.nix b/pkgs/by-name/mo/moe/package.nix
new file mode 100644
index 0000000000000..9d0724f1997b5
--- /dev/null
+++ b/pkgs/by-name/mo/moe/package.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenv
+, fetchurl
+, lzip
+, ncurses
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "moe";
+  version = "1.13";
+
+  src = fetchurl {
+    url = "mirror://gnu/moe/moe-${finalAttrs.version}.tar.lz";
+    hash = "sha256-Q6VXvFEvidbHGOX0ECnP46BVaCYg642+zmMC80omFGs=";
+  };
+
+  prePatch = ''
+    substituteInPlace window_vector.cc --replace \
+      "insert( 0U, 1," \
+      "insert( 0U, 1U,"
+  '';
+
+  nativeBuildInputs = [
+    lzip
+  ];
+
+  buildInputs = [
+    ncurses
+  ];
+
+  meta = {
+    homepage = "https://www.gnu.org/software/moe/";
+    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.
+    '';
+    license = lib.licenses.gpl2Plus;
+    maintainers = with lib.maintainers; [ AndersonTorres ];
+    platforms = lib.platforms.unix;
+    mainProgram = "moe";
+  };
+})
+# TODO: a configurable, global moerc file