From 4c87a1d28521db16a70562424787fdf088da15c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 22 Apr 2008 09:07:34 +0000 Subject: [PATCH] Remember: Fix tiny things. svn path=/nixpkgs/trunk/; revision=11680 --- .../editors/emacs-modes/remember/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/emacs-modes/remember/default.nix b/pkgs/applications/editors/emacs-modes/remember/default.nix index e40ac3da1bf5..ea17a9b792ae 100644 --- a/pkgs/applications/editors/emacs-modes/remember/default.nix +++ b/pkgs/applications/editors/emacs-modes/remember/default.nix @@ -1,16 +1,22 @@ { fetchurl, stdenv, texinfo, emacs, bbdb }: stdenv.mkDerivation rec { + # Note: Remember is part of GNU Emacs 23. name = "remember-2.0"; + src = fetchurl { url = "http://download.gna.org/remember-el/${name}.tar.gz"; sha256 = "04bp071xjbb6mbspjpwcza0krgx2827v6rfxbsdcpn0qcjgad9wm"; }; - buildInputs = [ emacs texinfo ]; + # FIXME: It also has a (soft) dependency on Planner and Bibl-mode. + buildInputs = [ emacs bbdb texinfo ]; patchPhase = '' - sed -i "Makefile.defs" -"es|^PREFIX *=.*$|PREFIX = $out|g" + sed -i "Makefile.defs" \ + -e"s|^ *PREFIX *=.*$|PREFIX = $out|g ; + s|^ *ELISPDIR *=.*$|ELISPDIR = $out/share/emacs/site-lisp|g ; + s|^ *EMACS *=.*$|EMACS = emacs -L \"${bbdb}/share/emacs/site-lisp\"|g" ''; meta = {