summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/darcsum/default.nix
blob: 349146dbdd896364545439a2d2d841057f9f6367 (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
# To automatically load darcsum when needed, add the following to your emacs init file:
#
#   (autoload 'darcsum-changes "darcsum" nil t)
#   (autoload 'darcsum-whatsnew "darcsum" nil t)
#   (autoload 'darcsum-view "darcsum" nil t)
#
# (These lines were copied from 50darcsum.el in the darcsum repository.)


{ fetchdarcs, stdenv }:

stdenv.mkDerivation {
  name = "darcsum-1.3";

  src = fetchdarcs {
    url = http://hub.darcs.net/simon/darcsum;
    context = ./darcs_context;
    sha256 = "18dyk2apmnjapd604a5njfqwjri1mc7lgjaajy9phicpibgdrwzh";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    install -d "$out/share/emacs/site-lisp"
    install darcsum.el "$out/share/emacs/site-lisp"
  '';

  meta = {
    description = "A pcl-cvs like interface for managing darcs patches.";
    homepage = "http://hub.darcs.net/simon/darcsum";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ stdenv.lib.maintainers.falsifian ];
  };
}