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

33 lines
915 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-10-24 16:13:12 +02:00
version = "1.3.12";
2015-05-26 20:50:05 +02:00
src = fetchurl {
url = "http://downloads.typesafe.com/typesafe-${pname}/${version}/typesafe-${name}.zip";
2016-10-24 16:13:12 +02:00
sha256 = "0c7mxznfgvywnyvr8l5jh4cp67ila5cdq14p6jwrkh6lwif3ah1p";
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 ];
platforms = with platforms; unix;
2015-05-26 20:50:05 +02:00
};
}