summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-21/default.nix
blob: 31a685ef7177542805fee6412a81c56e0e222110 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ xawSupport ? true
, xpmSupport ? true
, xaw3dSupport ? false
, stdenv, fetchurl, ncurses, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
}:

assert xawSupport && !xaw3dSupport -> libXaw != null;
assert xawSupport && xaw3dSupport -> Xaw3d != null;
assert xpmSupport -> libXpm != null;

stdenv.mkDerivation {
  name = "emacs-21.4a";
  builder = ./builder.sh;
  src = fetchurl {
    url = http://nix.cs.uu.nl/dist/tarballs/emacs-21.4a.tar.gz;
    md5 = "8f9d97cbd126121bd5d97e5e31168a87";
  };
  patches = [./crt.patch];
  buildInputs = [
    ncurses x11
    (if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
    (if xpmSupport then libXpm else null)
  ];

  meta = {
    description = "All Hail Emacs, the ultimate editor";
  };
}