2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
|
2009-10-27 12:48:26 +00:00
|
|
|
|
2012-07-25 19:35:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-27 17:35:11 +00:00
|
|
|
pname = "ec2-api-tools";
|
|
|
|
version = "1.7.5.1";
|
2012-11-08 14:42:14 +00:00
|
|
|
|
2009-10-27 12:48:26 +00:00
|
|
|
src = fetchurl {
|
2021-07-27 17:35:11 +00:00
|
|
|
url = "http://tarballs.nixos.org/ec2-api-tools-${version}.zip";
|
2015-09-24 08:36:32 +00:00
|
|
|
sha256 = "0figmvcm82ghmpz3018ihysz8zpxpysgbpdx7rmciq9y80qbw6l5";
|
2009-10-27 12:48:26 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
2010-01-13 12:54:26 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-11-08 14:42:14 +00:00
|
|
|
d=$out/libexec/ec2-api-tools
|
|
|
|
mkdir -p $d
|
|
|
|
mv * $d
|
|
|
|
rm $d/bin/*.cmd # Windows stuff
|
2010-01-13 12:54:26 +00:00
|
|
|
|
2012-11-08 14:42:14 +00: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 12:54:26 +00:00
|
|
|
--set JAVA_HOME ${jre}
|
|
|
|
done
|
|
|
|
''; # */
|
2012-11-08 14:42:14 +00:00
|
|
|
|
2010-01-13 12:54:26 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351";
|
2010-01-13 12:54:26 +00:00
|
|
|
description = "Command-line tools to create and manage Amazon EC2 virtual machines";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.amazonsl;
|
2010-01-13 12:54:26 +00:00
|
|
|
};
|
2009-10-27 12:48:26 +00:00
|
|
|
}
|