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 {
|
2012-11-08 15:42:14 +01:00
|
|
|
name = "ec2-api-tools-1.6.5.1";
|
|
|
|
|
2009-10-27 13:48:26 +01:00
|
|
|
src = fetchurl {
|
2013-06-25 14:05:48 +02:00
|
|
|
url = "http://tarballs.nixos.org/${name}.zip";
|
2012-11-08 15:42:14 +01:00
|
|
|
sha256 = "1j2pc20vggi4hv950999mhh7dl6475yma76nyj6k0hzkd1lf5hda";
|
2009-10-27 13:48:26 +01:00
|
|
|
};
|
|
|
|
|
2010-01-13 13:54:26 +01:00
|
|
|
buildInputs = [ unzip makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-11-08 15:42:14 +01:00
|
|
|
d=$out/libexec/ec2-api-tools
|
|
|
|
mkdir -p $d
|
|
|
|
mv * $d
|
|
|
|
rm $d/bin/*.cmd # Windows stuff
|
2010-01-13 13:54:26 +01:00
|
|
|
|
2012-11-08 15:42:14 +01:00
|
|
|
for i in $d/bin/*; do
|
|
|
|
b=$(basename $i)
|
|
|
|
if [ $b = "ec2-cmd" ]; then continue; fi
|
|
|
|
makeWrapper $i $out/bin/$(basename $i) \
|
|
|
|
--set EC2_HOME $d \
|
2010-01-13 13:54:26 +01:00
|
|
|
--set JAVA_HOME ${jre}
|
|
|
|
done
|
|
|
|
''; # */
|
2012-11-08 15:42:14 +01:00
|
|
|
|
2010-01-13 13:54:26 +01:00
|
|
|
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
|
|
|
}
|