about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs-modes/yaoddmuse/default.nix
blob: 4dc56894914e97edf1642010d6d7caa76603c9e5 (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, fetchurl, emacs}:

stdenv.mkDerivation {
  name = "yaoddmuse-0.1.2";

  src = fetchurl {
    url = "http://emacswiki.org/emacs/download/yaoddmuse.el";
    sha256 = "0vlllq3xmnlni0ws226pqxj68nshclbl5rgqv6y11i3yvzgiazr6";
  };

  phases = [ "buildPhase" "installPhase"];

  buildInputs = [ emacs ];

  buildPhase = ''
    cp $src yaoddmuse.el
    emacs --batch -f batch-byte-compile yaoddmuse.el
  '';

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

  meta = {
    description = "Comprehensive Emacs integration with Oddmuse wikis";
    homepage = "http://emacswiki.org/emacs/Yaoddmuse";
    platforms = stdenv.lib.platforms.all;
  };
}