about summary refs log tree commit diff
path: root/pkgs/by-name/ue
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2024-01-11 01:08:18 +0100
committernetworkException <git@nwex.de>2024-01-19 20:30:47 +0100
commit18eb3e36ff59e088413cc45efca480017a8c28b8 (patch)
treee5e7859f3e515e89425245616e26f1d555adcd74 /pkgs/by-name/ue
parent32afa5e024e45885dacadf1c8ad65e9ebc51a901 (diff)
uemacs: init at 4.0-unstable-2018-07-19
Diffstat (limited to 'pkgs/by-name/ue')
-rw-r--r--pkgs/by-name/ue/uemacs/package.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/ue/uemacs/package.nix b/pkgs/by-name/ue/uemacs/package.nix
new file mode 100644
index 0000000000000..4ed609868666a
--- /dev/null
+++ b/pkgs/by-name/ue/uemacs/package.nix
@@ -0,0 +1,46 @@
+{ lib
+, stdenv
+, fetchgit
+, ncurses
+}:
+
+stdenv.mkDerivation {
+  pname = "uemacs";
+  version = "4.0-unstable-2018-07-19";
+
+  src = fetchgit {
+    url = "https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git";
+    rev = "1cdcf9df88144049750116e36fe20c8c39fa2517";
+    hash = "sha256-QSouqZiBmKBU6FqRRfWtTGRIl5sqJ8tVPYwdytt/43w=";
+  };
+
+  nativeBuildInputs = [
+    ncurses
+  ];
+
+  postPatch = ''
+    substituteInPlace Makefile --replace "lcurses" "lncurses"
+    substituteInPlace Makefile --replace "/usr/bin" "$out/bin"
+    substituteInPlace Makefile --replace "/usr/lib" "$out/share/uemacs"
+
+    substituteInPlace epath.h --replace "/usr/global/lib/" "$out/share/uemacs/"
+  '';
+
+  installPhase = ''
+    mkdir -p $out/{bin,share/uemacs}
+    make install
+  '';
+
+  meta = with lib; {
+    description = "Linus Torvalds's random version of microemacs with his personal modifications";
+    homepage = "https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git/about/";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ networkexception ];
+    mainProgram = "em";
+    # MicroEMACS 3.9 can be copied and distributed freely for any
+    # non-commercial purposes. MicroEMACS 3.9 can only be incorporated
+    # into commercial software with the permission of the current author
+    # [Daniel M. Lawrence].
+    license = licenses.unfree;
+  };
+}