diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-07-09 16:09:09 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-07-09 16:09:09 +0000 |
commit | df646c8ae4b0f521a8dd332138e37b9176d360d5 (patch) | |
tree | aa7de32ec698beec485947a12adc103732f7f12e /pkgs/applications/editors/emacs-modes/emacs-w3m | |
parent | 2caabd37e1be75859507fe2226fe14860b0be3cd (diff) | |
download | nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar.gz nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar.bz2 nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar.lz nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar.xz nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.tar.zst nixlib-df646c8ae4b0f521a8dd332138e37b9176d360d5.zip |
Emacs-w3m: Add ImageMagick as a build input.
svn path=/nixpkgs/trunk/; revision=16288
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/emacs-w3m')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix index 3a8e20d405d6..dfc49d7a2923 100644 --- a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix +++ b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix @@ -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 = '' |