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

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "idris-mode";
  version = "0.9.14";

  src = fetchurl {
    url = "https://github.com/idris-hackers/${pname}/archive/${version}.tar.gz";
    sha256 = "1qlkbf14mcibp6h5r84fp5xdjspyaw1xdmnkmaxbypwjhhjg4s83";
  };

  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
  '';

  meta = {
    description = "Emacs major mode for Idris";
    homepage = https://github.com/idris-hackers/idris-mode;
    license = stdenv.lib.licenses.gpl3;

    platforms = stdenv.lib.platforms.all;
  };
}