nixpkgs/pkgs/development/tools/activator/default.nix

32 lines
889 B
Nix
Raw Normal View History

2015-05-26 20:50:05 +02:00
{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "activator";
2016-06-27 19:13:22 +02:00
version = "1.3.10";
2015-05-26 20:50:05 +02:00
src = fetchurl {
url = "http://downloads.typesafe.com/typesafe-${pname}/${version}/typesafe-${name}.zip";
2016-06-27 19:13:22 +02:00
sha256 = "43693f041c8422ee06a2a90a805fd7b0e258dc85da31f0a4dca340dfd119b4ce";
2015-05-26 20:50:05 +02:00
};
buildInputs = [ unzip jre ];
installPhase = ''
2016-06-27 19:13:22 +02:00
mkdir -p $out/{bin,lib,libexec}
2015-05-26 20:50:05 +02:00
mv repository $out/lib
2016-06-27 19:13:22 +02: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 20:50:05 +02: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 19:13:22 +02:00
maintainers = with maintainers; [ edwtjo cko ];
2015-05-26 20:50:05 +02:00
};
}