summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/flim/default.nix
blob: 1da221a4b1bb85082b98dff3340dcc17c0e353d9 (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
{stdenv, fetchgit, emacs, apel}:

stdenv.mkDerivation rec {
  name = "flim-git";

  src = fetchgit {
    url = "http://github.com/wanderlust/flim";
    rev = "d435c3626d2e07cc62f084930b6d5eca66f6768c";
  };

  buildInputs = [emacs apel];

  preConfigure = ''
    cat << EOF > FLIM-CFG
    (add-to-list 'load-path "${apel}/share/emacs/site-lisp/apel")
    (add-to-list 'load-path "${apel}/share/emacs/site-lisp/emu")
    (require 'install)
    (setq PREFIX "$out/share")
    (setq LISPDIR "$out/share/emacs/site-lisp")
    (setq FLIM_DIR "$out/share/emacs/site-lisp/flim")
    EOF
    cat FLIM-CFG
  '';

  meta = {
    description = "FLIM";
    homepage = http://nya.org/;
    license = "GPL";
  };
}