nixpkgs/pkgs/tools/virtualization/aws/default.nix

29 lines
709 B
Nix
Raw Normal View History

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