2010-01-13 13:54:26 +01:00
|
|
|
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
|
2009-10-27 13:48:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-04-25 15:33:25 +02:00
|
|
|
name = "ec2-api-tools-1.5.3.0";
|
2010-01-13 13:54:26 +01:00
|
|
|
|
2009-10-27 13:48:26 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip;
|
2012-04-25 15:33:25 +02:00
|
|
|
sha256 = "0p0rk3bhk35b3dxdy8wjnbbj5zh1va63yfvdk5jxnzdzplds8v65";
|
2009-10-27 13:48:26 +01:00
|
|
|
};
|
|
|
|
|
2010-01-13 13:54:26 +01:00
|
|
|
buildInputs = [ unzip makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2010-01-13 13:54:26 +01:00
|
|
|
mv * $out
|
|
|
|
rm $out/bin/*.cmd # Windows stuff
|
|
|
|
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram $i \
|
|
|
|
--set EC2_HOME $out \
|
|
|
|
--set JAVA_HOME ${jre}
|
|
|
|
done
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351;
|
|
|
|
description = "Command-line tools to create and manage Amazon EC2 virtual machines";
|
|
|
|
license = "unfree-redistributable";
|
|
|
|
};
|
2009-10-27 13:48:26 +01:00
|
|
|
}
|