2008-02-11 18:02:46 +01:00
|
|
|
{stdenv, fetchurl, emacs, texinfo, ctags}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "bbdb-2.35";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://bbdb.sourceforge.net/bbdb-2.35.tar.gz;
|
|
|
|
sha256 = "3fb1316e2ed74d47ca61187fada550e58797467bd9e8ad67343ed16da769f916";
|
|
|
|
};
|
|
|
|
|
2008-02-20 12:16:59 +01:00
|
|
|
patches = [ ./install-infodir.patch ];
|
2008-02-11 18:02:46 +01:00
|
|
|
|
2008-02-20 12:16:59 +01:00
|
|
|
buildInputs = [emacs texinfo ctags];
|
2011-07-07 23:04:56 +02:00
|
|
|
configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
|
|
|
|
preInstall = "ensureDir $out/info";
|
|
|
|
installTargets = "install-pkg texinfo";
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/info $out/share/
|
|
|
|
mv "$out/share/emacs/site-lisp/lisp/bbdb/"* $out/share/emacs/site-lisp/
|
|
|
|
mv $out/share/emacs/site-lisp/etc/bbdb $out/share/
|
|
|
|
rm -rf $out/share/emacs/site-lisp/{lisp,etc}
|
|
|
|
mv bits $out/share/bbdb/
|
|
|
|
# Make optional modules from bbdb available for import, but symlink
|
|
|
|
# them into the site-lisp directory to make it obvious that they are
|
|
|
|
# not a genuine part of the distribution.
|
|
|
|
ln -s "$out/share/bbdb/bits/"*.el $out/share/emacs/site-lisp/
|
|
|
|
'';
|
2008-02-11 18:02:46 +01:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "The Insidious Big Brother Database (BBDB), a contact management utility for Emacs";
|
2008-02-11 18:02:46 +01:00
|
|
|
homepage = http://bbdb.sourceforge.net/;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|