2019-06-13 21:14:16 +02:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-04-13 12:51:31 +02:00
|
|
|
|
2019-06-13 21:14:16 +02:00
|
|
|
buildGoModule rec {
|
2018-04-13 12:51:31 +02:00
|
|
|
name = "iamy-${version}";
|
2019-06-13 21:14:16 +02:00
|
|
|
version = "2.3.2";
|
2018-04-13 12:51:31 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/99designs/iamy";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "99designs";
|
|
|
|
repo = "iamy";
|
|
|
|
rev = "v${version}";
|
2019-06-13 21:14:16 +02:00
|
|
|
sha256 = "1fypc6yjnhlpk7zhb2lvah2ikh2zji9sll55rqjbr3i4j02h484z";
|
2018-04-13 12:51:31 +02:00
|
|
|
};
|
|
|
|
|
2019-06-13 21:14:16 +02:00
|
|
|
modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";
|
|
|
|
|
|
|
|
buildFlagsArray = [''-ldflags=
|
|
|
|
-X main.Version=v${version} -s -w
|
|
|
|
''];
|
|
|
|
|
2018-04-13 12:51:31 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cli tool for importing and exporting AWS IAM configuration to YAML files";
|
|
|
|
homepage = https://github.com/99designs/iamy;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ suvash ];
|
|
|
|
};
|
|
|
|
}
|