2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, perl, curl }:
|
2012-07-09 19:47:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-07-27 19:35:11 +02:00
|
|
|
pname = "aws";
|
|
|
|
version = "2019.06.18";
|
2019-06-19 17:45:34 +02:00
|
|
|
|
2012-07-09 19:47:16 +02:00
|
|
|
src = fetchurl {
|
2019-10-03 18:09:37 +02:00
|
|
|
url = "https://raw.github.com/timkay/aws/ac68eb5191c52f069b9aa0c9a99808f8a4430833/aws";
|
|
|
|
sha256 = "02bym9wicqpdr7mdim13zw5ssh97xfswzab9q29rsbg7058ddbil";
|
2012-07-09 19:47:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2012-07-09 19:47:16 +02:00
|
|
|
};
|
|
|
|
}
|