mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
aws-auth: init at unstable-2017-07-24
This commit is contained in:
parent
d79072ac2e
commit
2989324d60
2 changed files with 33 additions and 0 deletions
31
pkgs/tools/admin/aws-auth/default.nix
Normal file
31
pkgs/tools/admin/aws-auth/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, jq, awscli }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "unstable-2017-07-24";
|
||||
name = "aws-auth-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alphagov";
|
||||
repo = "aws-auth";
|
||||
rev = "5a4c9673f9f00ebaa4bb538827e1c2f277c475e1";
|
||||
sha256 = "095j9zqxra8hi2iyz0y4azs9yigy5f6alqkfmv180pm75nbc031g";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
# copy script and set $PATH
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/aws-auth.sh $out/bin/aws-auth
|
||||
wrapProgram $out/bin/aws-auth --prefix PATH : ${awscli}/bin:${jq}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/alphagov/aws-auth;
|
||||
description = "AWS authentication wrapper to handle MFA and IAM roles";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = with stdenv.lib.maintainers; [ ris ];
|
||||
};
|
||||
}
|
|
@ -511,6 +511,8 @@ with pkgs;
|
|||
|
||||
awless = callPackage ../tools/virtualization/awless { };
|
||||
|
||||
aws-auth = callPackage ../tools/admin/aws-auth { };
|
||||
|
||||
ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { };
|
||||
|
||||
ec2_ami_tools = callPackage ../tools/virtualization/ec2-ami-tools { };
|
||||
|
|
Loading…
Reference in a new issue