about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/ido-ubiquitous/default.nix
blob: 3cc8156337e0309b5e6b56f367b7b4644b647c44 (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
{ stdenv, fetchFromGitHub, emacs }:

let
  version = "3.6-4-gb659bf8";
in
stdenv.mkDerivation {
  name = "ido-ubiquitous-${version}";

  src = fetchFromGitHub {
    owner = "DarwinAwardWinner";
    repo = "ido-ubiquitous";
    rev = version;
    sha256 = "06r8qpfr60gc673w881m0nplj91b6bfw77bxgl6irz1z9bp7cc4y";
  };

  buildInputs = [ emacs ];

  buildPhase = ''
    emacs -L . --batch -f batch-byte-compile *.el
  '';

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