2010-01-13 13:54:26 +01:00
|
|
|
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
|
2009-10-27 13:48:26 +01:00
|
|
|
|
2012-07-25 21:35:51 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ec2-api-tools-1.6.0.0";
|
2010-01-13 13:54:26 +01:00
|
|
|
|
2009-10-27 13:48:26 +01:00
|
|
|
src = fetchurl {
|
2012-07-25 21:35:51 +02:00
|
|
|
url = "http://nixos.org/tarballs/${name}.zip";
|
|
|
|
sha256 = "1j9isvi6g68zhk7zxs29yad2d0rpnbqx8fz25yn5paqx9c8pzqcl";
|
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
|
|
|
}
|