mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Emacs 22.1. This is the default now, but 21.4 is still around
(as is the 23.0.0.1 alpha). svn path=/nixpkgs/trunk/; revision=9175
This commit is contained in:
parent
f1cf8d1d7a
commit
16c6da0129
5 changed files with 9 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
|||
, gtkGUI ? false
|
||||
, stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
||||
, pkgconfig ? null, gtk ? null
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
||||
|
@ -12,15 +13,15 @@ assert xpmSupport -> libXpm != null;
|
|||
assert gtkGUI -> pkgconfig != null && gtk != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "emacs-22.0.50-pre20051207";
|
||||
name = "emacs-22.1";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://nix.cs.uu.nl/dist/tarballs/emacs-22.0.50-pre20051207.tar.bz2;
|
||||
md5 = "011d40367015691e4319ddc65b4e7843";
|
||||
url = http://ftp.nluug.nl/pub/gnu/emacs/emacs-22.1.tar.gz;
|
||||
sha256 = "1l1y3il98pq3cz464p244wz2d3nga5lq8fkw5pwp5r97f7pkpi0y";
|
||||
};
|
||||
patches = [./crt.patch];
|
||||
buildInputs = [
|
||||
x11
|
||||
ncurses x11
|
||||
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
||||
(if xpmSupport then libXpm else null)
|
||||
] ++ (if gtkGUI then [pkgconfig gtk] else []);
|
||||
|
|
|
@ -3029,14 +3029,16 @@ rec {
|
|||
inherit stdenv fetchurl python perl ncurses x11 zlib openssl;
|
||||
};
|
||||
|
||||
emacs = import ../applications/editors/emacs {
|
||||
emacs = emacs22;
|
||||
|
||||
emacs21 = import ../applications/editors/emacs-21 {
|
||||
inherit fetchurl stdenv ncurses x11 Xaw3d;
|
||||
inherit (xlibs) libXaw libXpm;
|
||||
xaw3dSupport = true;
|
||||
};
|
||||
|
||||
emacs22 = import ../applications/editors/emacs-22 {
|
||||
inherit fetchurl stdenv pkgconfig x11 Xaw3d;
|
||||
inherit fetchurl stdenv ncurses pkgconfig x11 Xaw3d;
|
||||
inherit (xlibs) libXaw libXpm;
|
||||
inherit (gtkLibs) gtk;
|
||||
xaw3dSupport = false;
|
||||
|
|
Loading…
Reference in a new issue