summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/remember/default.nix
blob: 7c0bc517755a10a10a83cf58853a5c0cb4796115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ 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";
  };

  # FIXME: It also has a (soft) dependency on Planner and Bibl-mode.
  buildInputs = [ emacs bbdb texinfo ];

  patchPhase = ''
    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 = {
    description = "Remember, an Emacs mode for quickly remembering data";

    longDescription = ''
      Remember is an Emacs mode for quickly remembering data.  It uses
      whatever back-end is appropriate to record and correlate the
      data, but its main intention is to allow you to express as
      little structure as possible up front.

      When you enter data, either by typing it into a buffer, or using
      the contents of the selected region, Remember will store that
      data -- unindexed, uninterpreted -- in a data pool.  It will
      also try to remember as much context information as possible
      (any text properties that were set, where you copied it from,
      when, how, etc).  Later, you can walk through your accumulated
      set of data (both organized, and unorganized) and easily begin
      moving things around, and making annotations that will express
      the full meaning of that data, as far as you know it.
    '';

    homepage = http://gna.org/projects/remember-el/;
    license = stdenv.lib.licenses.gpl2Plus;
  };
}