2008-02-11 18:02:46 +01:00
|
|
|
{stdenv, fetchurl, emacs, texinfo, ctags}:
|
|
|
|
|
2014-01-21 20:18:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bbdb-2.36";
|
2008-02-11 18:02:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 01:35:26 +02:00
|
|
|
# not using mirror:// because it produces a different file
|
2014-01-21 20:18:27 +01:00
|
|
|
url = "http://bbdb.sourceforge.net/${name}.tar.gz";
|
|
|
|
sha256 = "1rmw94l71ahfbynyy0bijfy488q9bl5ksl4zpvg7j9dbmgbh296r";
|
2008-02-11 18:02:46 +01:00
|
|
|
};
|
|
|
|
|
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";
|
2012-01-18 21:16:00 +01:00
|
|
|
preInstall = "mkdir -p $out/info";
|
2011-07-07 23:04:56 +02:00
|
|
|
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 = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://bbdb.sourceforge.net/;
|
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
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|