mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
60f949bc78
Sorry, not sure how I missed this in my earlier commit!
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, pythonPackages, groff }:
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
name = "awscli-${version}";
|
|
version = "1.9.6";
|
|
namePrefix = "";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-cli";
|
|
rev = version;
|
|
sha256 = "08qclasxf8zdxwmngvynq9n5vv4nwdy68ma7wn7ji40bxmls37g2";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|