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

let
  version = "3.6-4-gb659bf8";
in
stdenv.mkDerivation {
  pname = "ido-ubiquitous";
  inherit 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
  '';
}