Emacs-w3m: Add ImageMagick as a build input.

svn path=/nixpkgs/trunk/; revision=16288
This commit is contained in:
Ludovic Courtès 2009-07-09 16:09:09 +00:00
parent 2caabd37e1
commit df646c8ae4
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, emacs, w3m, texinfo }:
{ fetchurl, stdenv, emacs, w3m, imagemagick, texinfo }:
stdenv.mkDerivation rec {
name = "emacs-w3m-1.4.4";
@ -10,9 +10,14 @@ stdenv.mkDerivation rec {
buildInputs = [ emacs w3m texinfo ];
# XXX: Should we do the same for xpdf/evince, gv, gs, etc.?
patchPhase = ''
sed -i "w3m.el" \
-e 's|defcustom w3m-command nil|defcustom w3m-command "${w3m}/bin/w3m"|g'
-e 's|defcustom w3m-command nil|defcustom w3m-command "${w3m}/bin/w3m"|g ;
s|(w3m-which-command "display")|"${imagemagick}/bin/display"|g'
sed -i "w3m-image.el" \
-e 's|defcustom w3m-imagick-convert-program.*$|defcustom w3m-imagick-convert-program "${imagemagick}/bin/convert"|g'
'';
configurePhase = ''

View File

@ -6234,7 +6234,7 @@ let
emacsUnicode = emacs23;
emacsw3m = import ../applications/editors/emacs-modes/emacs-w3m {
inherit fetchurl stdenv emacs w3m texinfo;
inherit fetchurl stdenv emacs w3m imagemagick texinfo;
};
emms = import ../applications/editors/emacs-modes/emms {