3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/virtualization/aws/default.nix

30 lines
725 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, perl, curl }:
stdenv.mkDerivation {
pname = "aws";
version = "2019.06.18";
2019-06-19 16:45:34 +01:00
src = fetchurl {
2019-10-03 17:09:37 +01:00
url = "https://raw.github.com/timkay/aws/ac68eb5191c52f069b9aa0c9a99808f8a4430833/aws";
sha256 = "02bym9wicqpdr7mdim13zw5ssh97xfswzab9q29rsbg7058ddbil";
};
buildInputs = [ perl ];
2019-06-19 16:45:34 +01:00
dontUnpack = true;
installPhase =
''
mkdir -p $out/bin
sed 's|\[curl|[${curl.bin}/bin/curl|g' $src > $out/bin/aws
chmod +x $out/bin/aws
'';
meta = {
homepage = "https://www.timkay.com/aws/";
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;
};
}