about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/ne/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/ne/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/ne/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/ne/default.nix b/nixpkgs/pkgs/applications/editors/ne/default.nix
new file mode 100644
index 000000000000..4faf1e28b1cc
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/ne/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
+
+stdenv.mkDerivation rec {
+  pname = "ne";
+  version = "3.3.0";
+
+  src = fetchFromGitHub {
+    owner = "vigna";
+    repo = pname;
+    rev = version;
+    sha256 = "01aglnsfljlvx0wvyvpjfn4y88jf450a06qnj9a8lgdqv1hdkq1a";
+  };
+
+  postPatch = ''
+    substituteInPlace makefile --replace "./version.pl" "perl version.pl"
+    substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
+  '';
+
+  nativeBuildInputs = [ texlive.combined.scheme-medium texinfo perl ghostscript ];
+  buildInputs = [ ncurses ];
+
+  makeFlags = [ "PREFIX=${placeholder "out"}" ];
+
+  meta = with stdenv.lib; {
+    description = "The nice editor";
+    homepage = "http://ne.di.unimi.it/";
+    longDescription = ''
+      ne is a free (GPL'd) text editor based on the POSIX standard that runs
+      (we hope) on almost any UN*X machine.  ne is easy to use for the beginner,
+      but powerful and fully configurable for the wizard, and most sparing in its
+      resource usage.  See the manual for some highlights of ne's features.
+    '';
+    license = licenses.gpl3;
+    platforms = platforms.unix;
+  };
+}