nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "iamy";
5 version = "2.3.2";
6
7 goPackagePath = "github.com/99designs/iamy";
8
9 src = fetchFromGitHub {
10 owner = "99designs";
11 repo = "iamy";
12 rev = "v${version}";
13 sha256 = "1fypc6yjnhlpk7zhb2lvah2ikh2zji9sll55rqjbr3i4j02h484z";
14 };
15
16 modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";
17
18 buildFlagsArray = [''-ldflags=
19 -X main.Version=v${version} -s -w
20 ''];
21
22 meta = with stdenv.lib; {
23 description = "A cli tool for importing and exporting AWS IAM configuration to YAML files";
24 homepage = https://github.com/99designs/iamy;
25 license = licenses.mit;
26 maintainers = with maintainers; [ suvash ];
27 };
28}