ec2-api-tools: Update to 1.6.5.1
Also, move everything to $out/libexec/ec2-api-tools.
This commit is contained in:
parent
8165e2ddb0
commit
b74e1c9187
@ -1,28 +1,31 @@
|
|||||||
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
|
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ec2-api-tools-1.6.0.0";
|
name = "ec2-api-tools-1.6.5.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://nixos.org/tarballs/${name}.zip";
|
url = "http://nixos.org/tarballs/${name}.zip";
|
||||||
sha256 = "1j9isvi6g68zhk7zxs29yad2d0rpnbqx8fz25yn5paqx9c8pzqcl";
|
sha256 = "1j2pc20vggi4hv950999mhh7dl6475yma76nyj6k0hzkd1lf5hda";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip makeWrapper ];
|
buildInputs = [ unzip makeWrapper ];
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
mkdir -p $out
|
d=$out/libexec/ec2-api-tools
|
||||||
mv * $out
|
mkdir -p $d
|
||||||
rm $out/bin/*.cmd # Windows stuff
|
mv * $d
|
||||||
|
rm $d/bin/*.cmd # Windows stuff
|
||||||
|
|
||||||
for i in $out/bin/*; do
|
for i in $d/bin/*; do
|
||||||
wrapProgram $i \
|
b=$(basename $i)
|
||||||
--set EC2_HOME $out \
|
if [ $b = "ec2-cmd" ]; then continue; fi
|
||||||
|
makeWrapper $i $out/bin/$(basename $i) \
|
||||||
|
--set EC2_HOME $d \
|
||||||
--set JAVA_HOME ${jre}
|
--set JAVA_HOME ${jre}
|
||||||
done
|
done
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351;
|
homepage = http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351;
|
||||||
description = "Command-line tools to create and manage Amazon EC2 virtual machines";
|
description = "Command-line tools to create and manage Amazon EC2 virtual machines";
|
||||||
|
Loading…
Reference in New Issue
Block a user