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