From a0cb7e4a61ee7ddfd3a5e49d9d9f40e35c1a4e19 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 9 Jul 2012 13:47:16 -0400 Subject: [PATCH] Add aws, a utility for working with various AWS services --- pkgs/tools/virtualization/aws/default.nix | 27 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/virtualization/aws/default.nix diff --git a/pkgs/tools/virtualization/aws/default.nix b/pkgs/tools/virtualization/aws/default.nix new file mode 100644 index 00000000000..00cc4e7733f --- /dev/null +++ b/pkgs/tools/virtualization/aws/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, perl }: + +stdenv.mkDerivation { + name = "aws-1.75"; + + src = fetchurl { + url = https://raw.github.com/timkay/aws/2f2ff99f9f5111ea708ae6cd14d20e264748e72b/aws; + sha256 = "0d5asv73a58yb1bb1jpsw3c7asd62y86z5fwpg4llhjzkx79maj6"; + }; + + buildInputs = [ perl ]; + + unpackPhase = "true"; + + installPhase = + '' + mkdir -p $out/bin + cp $src $out/bin/aws + chmod +x $out/bin/aws + ''; + + meta = { + homepage = http://www.timkay.com/aws/; + description = "Command-line utility for working with Amazon EC2, S3, SQS, ELB, IAM and SDB"; + license = "GPLv3+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8bdb90d3bba..e8f167ff193 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -419,6 +419,8 @@ let qt4Support = getConfig [ "avahi" "qt4Support" ] false; }; + aws = callPackage ../tools/virtualization/aws { }; + aws_mturk_clt = callPackage ../tools/misc/aws-mturk-clt { }; axel = callPackage ../tools/networking/axel { };