1{ stdenv, fetchurl, perl, curl }:
2
3stdenv.mkDerivation {
4 name = "aws-1.75";
5
6 src = fetchurl {
7 url = https://raw.github.com/timkay/aws/2f2ff99f9f5111ea708ae6cd14d20e264748e72b/aws;
8 sha256 = "0d5asv73a58yb1bb1jpsw3c7asd62y86z5fwpg4llhjzkx79maj6";
9 };
10
11 buildInputs = [ perl ];
12
13 unpackPhase = "true";
14
15 installPhase =
16 ''
17 mkdir -p $out/bin
18 sed 's|\[curl|[${curl.bin}/bin/curl|g' $src > $out/bin/aws
19 chmod +x $out/bin/aws
20 '';
21
22 meta = {
23 homepage = http://www.timkay.com/aws/;
24 description = "Command-line utility for working with Amazon EC2, S3, SQS, ELB, IAM and SDB";
25 license = stdenv.lib.licenses.gpl3Plus;
26 platforms = stdenv.lib.platforms.unix;
27 };
28}