nixpkgs/pkgs/tools/virtualization/amazon-ec2-api-tools/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

32 lines
798 B
Nix

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