summary refs log tree commit diff
path: root/pkgs/tools/virtualization/aws/default.nix
blob: 57aae0c695f982229cd89ebbdd0016fb58e6877f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, perl, curl }:

stdenv.mkDerivation {
  name = "aws-1.75";

  src = fetchurl {
    url = "https://raw.github.com/timkay/aws/2f2ff99f9f5111ea708ae6cd14d20e264748e72b/aws";
    sha256 = "0d5asv73a58yb1bb1jpsw3c7asd62y86z5fwpg4llhjzkx79maj6";
  };

  buildInputs = [ perl ];

  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";
    license = stdenv.lib.licenses.gpl3Plus;
    platforms = stdenv.lib.platforms.unix;
  };
}