sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / je / jed / package.nix
blob1e17aaf18163efc3bfde8689fd44be8fa95ae850
2   lib,
3   stdenv,
4   fetchzip,
5   pkg-config,
6   gpm,
7   libXext,
8   libXft,
9   libXt,
10   ncurses5,
11   slang,
14 stdenv.mkDerivation rec {
15   pname = "jed";
16   version = "0.99-19";
18   src = fetchzip {
19     url = "https://www.jedsoft.org/releases/${pname}/${pname}-${version}.tar.bz2";
20     sha256 = "sha256-vzeX0P+2+IuKtrX+2lQDeJj7VMDS6XurD2pb2jhxy2Q=";
21   };
23   nativeBuildInputs = [ pkg-config ];
24   buildInputs = [
25     gpm
26     libXext
27     libXft
28     libXt
29     ncurses5
30     slang
31   ];
33   configureFlags = [
34     "CC=${stdenv.cc.targetPrefix}cc"
35     "--with-slang=${slang}"
36     "JED_ROOT=${placeholder "out"}/share/jed"
37   ];
39   makeFlags = [
40     "jed"
41     "xjed"
42     "rgrep"
43   ];
45   postPatch = ''
46     for i in autoconf/Makefile autoconf/Makefile.in \
47              doc/tm/Makefile src/Makefile.in; do
48       sed -e 's|/bin/cp|cp|' -i $i
49     done
50     for i in autoconf/aclocal.m4 configure; do
51       sed -e 's|ncurses5|ncurses|' -i $i
52     done
53   '';
55   postInstall = ''
56     install -D src/objs/rgrep $out/bin
57   '';
59   meta = with lib; {
60     description = "Programmable text editor written around S-Lang";
61     longDescription = ''
62       JED is a freely available text editor for Unix, VMS, MSDOS, OS/2, BeOS,
63       QNX, and win9X/NT platforms. Although it is a powerful editor designed for
64       use by programmers, its drop-down menu facility make it one of the
65       friendliest text editors around. Hence it is ideal for composing simple
66       email messages as well as editing complex programs in a variety of
67       computer languages.
69       JED makes extensive use of the S-Lang library, which endows it with the
70       powerful S-Lang scripting language. Some of its features are:
72       - Color syntax highlighting on color terminals, e.g., Linux console or a
73         remote color terminal via dialup (as well as Xjed)
74       - Folding support
75       - Drop-down menus on _ALL_ terminals/platforms
76       - Emulation of Emacs, EDT, Wordstar, Borland, and Brief editors
77       - Extensible in the C-like S-Lang language making the editor completely
78         customizable.
79       - Capable of reading GNU info files from within JED's info browser
80       - A variety of programming modes (with syntax highlighting) are available
81         including C, C++, FORTRAN, TeX, HTML, SH, python, IDL, DCL, NROFF...
82       - Edit TeX files with AUC-TeX style editing (BiBTeX support too)
83       - Asynchronous subprocess support allowing one to compile from within the
84         editor
85       - Built-in support for the GPM mouse driver on Linux console
86       - Abbreviation mode and Dynamic abbreviation mode
87       - 8 bit clean with mute/dead key support
88       - Supported on most Unix, VMS, OS/2, MSDOS (386+), win9X/NT, QNX, and BeOS
89         systems
90       - Rectangular cut/paste; regular expressions; incremental searches; search
91         replace across multiple files; multiple windows; multiple buffers; shell
92         modes; directory editor (dired); mail; rmail; ispell; and much, much
93         more
94     '';
95     homepage = "https://www.jedsoft.org/jed/index.html";
96     license = licenses.gpl2Plus;
97     platforms = slang.meta.platforms;
98   };
100 # TODO: build tex documentation