1{ stdenv, fetchurl, unzip, jre }:
2
3stdenv.mkDerivation rec {
4
5 name = "${pname}-${version}";
6 pname = "activator";
7 version = "1.3.5";
8
9 src = fetchurl {
10 url = "http://downloads.typesafe.com/typesafe-${pname}/${version}/typesafe-${name}.zip";
11 sha256 = "19mcrp1ky652wwh3360ia0irc0c2xjcnn9rdal1rmkkzsqn4jx0b";
12 };
13
14 buildInputs = [ unzip jre ];
15
16 installPhase = ''
17 mkdir -p $out/{bin,lib}
18 mv repository $out/lib
19 sed -i -e "s,declare.*activator_home.*=.*,declare -r activator_home=$out/lib/,g" activator
20 mv activator $out/bin
21 mv activator-launch-${version}.jar $out/lib
22 '';
23
24 meta = with stdenv.lib; {
25 description = "A scafollding tool for setting up reactive projects";
26 homepage = "http://typesafe.com/activator";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ edwtjo ];
29 };
30
31}