summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/nyan-mode/default.nix
blob: d57c591ec1e8451b6e9d326a98f68bd9ef6019da (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
{trivialBuild, lib, fetchFromGitHub}:

trivialBuild rec {
  pname    = "nyan-mode";
  version  = "20150128";

  src = fetchFromGitHub {
    owner  = "TeMPOraL";
    repo   = pname;
    rev    = "41faa2c809da7b2cb3e6f8fadefae3f338ced3f2";
    sha256 = "1idaac7sjc8hhbf5zif61ncg1pvg28c0qfihavdx61albww0ll7f";
  };

  patches = [ ./directory.patch ];

  preBuild = ''
    substituteInPlace nyan-mode.el \
      --replace "@OUT@" "$out/"
  '';

  postInstall = ''
    cp -r img $out
    cp -r mus $out
  '';

  meta = with lib; {
    description = "An analog indicator of the position in the buffer";
    homepage = https://github.com/TeMPOraL/nyan-mode/;
    license = licenses.gpl3Plus;
  };
}