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

29 lines
703 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, perl, curl }:
stdenv.mkDerivation {
name = "aws-1.75";
2019-06-19 15:45:34 +00:00
src = fetchurl {
url = "https://raw.github.com/timkay/aws/2f2ff99f9f5111ea708ae6cd14d20e264748e72b/aws";
sha256 = "0d5asv73a58yb1bb1jpsw3c7asd62y86z5fwpg4llhjzkx79maj6";
};
buildInputs = [ perl ];
2019-06-19 15:45:34 +00: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;
};
}