Emacs-w3m: Add ImageMagick as a build input.
svn path=/nixpkgs/trunk/; revision=16288
This commit is contained in:
parent
2caabd37e1
commit
df646c8ae4
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, emacs, w3m, texinfo }:
|
{ fetchurl, stdenv, emacs, w3m, imagemagick, texinfo }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "emacs-w3m-1.4.4";
|
name = "emacs-w3m-1.4.4";
|
||||||
@ -10,9 +10,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ emacs w3m texinfo ];
|
buildInputs = [ emacs w3m texinfo ];
|
||||||
|
|
||||||
|
# XXX: Should we do the same for xpdf/evince, gv, gs, etc.?
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i "w3m.el" \
|
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 = ''
|
configurePhase = ''
|
||||||
|
@ -6234,7 +6234,7 @@ let
|
|||||||
emacsUnicode = emacs23;
|
emacsUnicode = emacs23;
|
||||||
|
|
||||||
emacsw3m = import ../applications/editors/emacs-modes/emacs-w3m {
|
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 {
|
emms = import ../applications/editors/emacs-modes/emms {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user