summary refs log tree commit diff
path: root/pkgs/tools/admin/iamy/default.nix
blob: 6a1ec948d907b2cf70dc94c0eb1b29c0d0aba154 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, buildGoModule, fetchFromGitHub, Security }:

buildGoModule rec {
  pname = "iamy";
  version = "2.3.2";

  src = fetchFromGitHub {
    owner = "99designs";
    repo = "iamy";
    rev = "v${version}";
    sha256 = "1fypc6yjnhlpk7zhb2lvah2ikh2zji9sll55rqjbr3i4j02h484z";
  };

  modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";

  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

  buildFlagsArray = [''-ldflags=
    -X main.Version=v${version} -s -w
  ''];

  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 ];
  };
}