nixpkgs/pkgs/tools/admin/awscli/default.nix
Daniel Brockman 8828a174cb awscli: 1.7.41 -> 1.7.47
People in #nixos told me to switch from fetchzip to fetchFromGitHub;
let me know if that's a bad change.
2015-09-03 13:51:08 +02:00

40 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, pythonPackages, groff }:
pythonPackages.buildPythonPackage rec {
name = "awscli-${version}";
version = "1.7.47";
namePrefix = "";
src = fetchFromGitHub {
owner = "aws";
repo = "aws-cli";
rev = version;
sha256 = "1955y1ar2mqzqgfngpwp8pc78wphh1qdgwwy0gs6i352jaqzkvwi";
};
propagatedBuildInputs = [
pythonPackages.botocore
pythonPackages.bcdoc
pythonPackages.six
pythonPackages.colorama
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 ];
};
}