-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
default.nix
32 lines (25 loc) · 915 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "activator";
version = "1.3.12";
src = fetchurl {
url = "http://downloads.typesafe.com/typesafe-${pname}/${version}/typesafe-${name}.zip";
sha256 = "0c7mxznfgvywnyvr8l5jh4cp67ila5cdq14p6jwrkh6lwif3ah1p";
};
buildInputs = [ unzip jre ];
installPhase = ''
mkdir -p $out/{bin,lib,libexec}
mv repository $out/lib
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
'';
meta = with stdenv.lib; {
description = "A scafollding tool for setting up reactive projects";
homepage = "http://typesafe.com/activator";
license = licenses.asl20;
maintainers = with maintainers; [ edwtjo cko ];
platforms = with platforms; unix;
};
}