nixpkgs/pkgs/tools/virtualization/amazon-ec2-api-tools/default.nix
Eelco Dolstra 8df32943a0 * ec2-api-tools updated to 1.4.2.2.
svn path=/nixpkgs/branches/modular-python/; revision=26606
2011-03-30 14:17:26 +00:00

32 lines
799 B
Nix

{ stdenv, fetchurl, unzip, makeWrapper, jre }:
stdenv.mkDerivation {
name = "ec2-api-tools-1.4.2.2";
src = fetchurl {
url = http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip;
sha256 = "0qv3dy6zx5yxix3g90agj39k35sry3cifhzlhprv35lapiynsd0j";
};
buildInputs = [ unzip makeWrapper ];
installPhase =
''
ensureDir $out
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";
};
}