nixpkgs/pkgs/tools/admin/awscli/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchzip, pythonPackages, groff }:
pythonPackages.buildPythonPackage rec {
name = "awscli-${version}";
version = "1.7.29";
namePrefix = "";
2015-01-09 22:27:10 +00:00
src = fetchzip {
url = "https://github.com/aws/aws-cli/archive/${version}.tar.gz";
sha256 = "0r0w5qldimdp2d2ykw7pmppn8chbhh6cm48famhldqnyrh3vrf02";
};
propagatedBuildInputs = [
pythonPackages.botocore
2014-02-12 14:35:01 +00:00
pythonPackages.bcdoc
pythonPackages.six
pythonPackages.colorama
2014-02-12 14:35:01 +00:00
pythonPackages.docutils
pythonPackages.rsa
pythonPackages.pyasn1
groff
];
postInstall = ''
mkdir -p $out/etc/bash_completion.d
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
mkdir -p $out/share/zsh/site-functions
mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
rm $out/bin/aws.cmd
'';
meta = {
homepage = https://aws.amazon.com/cli/;
description = "Unified tool to manage your AWS services";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ muflax ];
};
}