summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/scala-mode/v2.nix
blob: ed3ac0e3da05d6bd81837330eebddbe4294795e8 (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-07-01";

  src = fetchurl {
    url = "https://github.com/hvesalai/scala-mode2/archive/c154f1623f4696d26e1c88d19170e67bf6825837.zip";
    sha256 = "0im2ajb1iagjldh52j8wz4yby68rs3h7shrdf1pqy5ds7s4fa8cc";
  };

  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";
  };
}