about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/scala-mode/v2.nix
blob: 13d3f4b00d1f7d42b8481146bf8d6baaf95d77bb (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
{ stdenv, fetchurl, emacs, unzip }:

stdenv.mkDerivation {

  name = "scala-mode2-2014-06-05";

  src = fetchurl {
    url = "https://github.com/hvesalai/scala-mode2/archive/af2dc30226c890ff7d49d727450f8006b90781df.zip";
    sha256 = "1jj08li9lfg5291jzj170wa3cmyf3g2a0j80cy5307l0mdawp9vx";
  };

  buildInputs = [ unzip emacs ];

  installPhase = ''
    mkdir -p "$out/share/emacs/site-lisp"
    cp -v *.el *.elc "$out/share/emacs/site-lisp/"
  '';

  meta = {
    homepage = "https://github.com/hvesalai/scala-mode2";
    description = "An Emacs mode for editing Scala code";
    license = "permissive";
  };
}