blob: 409b2ba8f416ef0d589b65a6d9b1ecb4896bfef1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "ec2-api-tools-1.7.5.1";
src = fetchurl {
url = "http://tarballs.nixos.org/${name}.zip";
sha256 = "0figmvcm82ghmpz3018ihysz8zpxpysgbpdx7rmciq9y80qbw6l5";
};
buildInputs = [ unzip makeWrapper ];
installPhase =
''
d=$out/libexec/ec2-api-tools
mkdir -p $d
mv * $d
rm $d/bin/*.cmd # Windows stuff
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 \
--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 = stdenv.lib.licenses.amazonsl;
};
}
|