2008-02-11 17:02:46 +00:00
|
|
|
{stdenv, fetchurl, emacs, texinfo, ctags}:
|
|
|
|
|
2014-01-21 19:18:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bbdb-2.36";
|
2008-02-11 17:02:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 00:35:26 +01:00
|
|
|
# not using mirror:// because it produces a different file
|
2014-01-21 19:18:27 +00:00
|
|
|
url = "http://bbdb.sourceforge.net/${name}.tar.gz";
|
|
|
|
sha256 = "1rmw94l71ahfbynyy0bijfy488q9bl5ksl4zpvg7j9dbmgbh296r";
|
2008-02-11 17:02:46 +00:00
|
|
|
};
|
|
|
|
|
2008-02-20 11:16:59 +00:00
|
|
|
patches = [ ./install-infodir.patch ];
|
2008-02-11 17:02:46 +00:00
|
|
|
|
2008-02-20 11:16:59 +00:00
|
|
|
buildInputs = [emacs texinfo ctags];
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-package-dir=$$out/share/emacs/site-lisp" ];
|
2012-01-18 20:16:00 +00:00
|
|
|
preInstall = "mkdir -p $out/info";
|
2011-07-07 22:04:56 +01: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 17:02:46 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://bbdb.sourceforge.net/;
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "The Insidious Big Brother Database (BBDB), a contact management utility for Emacs";
|
2008-02-11 17:02:46 +00:00
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|