2014-02-12 14:27:08 +01:00
|
|
|
{ stdenv, fetchurl, perl, curl }:
|
2012-07-09 19:47:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "aws-1.75";
|
2019-06-19 17:45:34 +02:00
|
|
|
|
2012-07-09 19:47:16 +02:00
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://raw.github.com/timkay/aws/2f2ff99f9f5111ea708ae6cd14d20e264748e72b/aws";
|
2012-07-09 19:47:16 +02:00
|
|
|
sha256 = "0d5asv73a58yb1bb1jpsw3c7asd62y86z5fwpg4llhjzkx79maj6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2012-07-09 19:47:16 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
2015-10-06 15:32:17 +02:00
|
|
|
sed 's|\[curl|[${curl.bin}/bin/curl|g' $src > $out/bin/aws
|
2012-07-09 19:47:16 +02:00
|
|
|
chmod +x $out/bin/aws
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.timkay.com/aws/";
|
2012-07-09 19:47:16 +02:00
|
|
|
description = "Command-line utility for working with Amazon EC2, S3, SQS, ELB, IAM and SDB";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-07-09 19:47:16 +02:00
|
|
|
};
|
|
|
|
}
|