2015-05-26 18:50:05 +00:00
|
|
|
{ stdenv, fetchurl, unzip, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "activator";
|
2016-06-27 17:13:22 +00:00
|
|
|
version = "1.3.10";
|
2015-05-26 18:50:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.typesafe.com/typesafe-${pname}/${version}/typesafe-${name}.zip";
|
2016-06-27 17:13:22 +00:00
|
|
|
sha256 = "43693f041c8422ee06a2a90a805fd7b0e258dc85da31f0a4dca340dfd119b4ce";
|
2015-05-26 18:50:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip jre ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-06-27 17:13:22 +00:00
|
|
|
mkdir -p $out/{bin,lib,libexec}
|
2015-05-26 18:50:05 +00:00
|
|
|
mv repository $out/lib
|
2016-06-27 17:13:22 +00:00
|
|
|
sed -i -e "s,declare.*activator_home.*=.*,declare -r activator_home=$out/lib/,g" bin/activator
|
|
|
|
mv bin/activator $out/bin
|
|
|
|
mv libexec/activator-launch-${version}.jar $out/libexec
|
2015-05-26 18:50:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A scafollding tool for setting up reactive projects";
|
|
|
|
homepage = "http://typesafe.com/activator";
|
|
|
|
license = licenses.asl20;
|
2016-06-27 17:13:22 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo cko ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2015-05-26 18:50:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|