nixpkgs/pkgs/tools/admin/iamy/default.nix

29 lines
697 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-13 20:14:16 +01:00
buildGoModule rec {
pname = "iamy";
2019-06-13 20:14:16 +01:00
version = "2.3.2";
src = fetchFromGitHub {
owner = "99designs";
repo = "iamy";
rev = "v${version}";
2019-06-13 20:14:16 +01:00
sha256 = "1fypc6yjnhlpk7zhb2lvah2ikh2zji9sll55rqjbr3i4j02h484z";
};
vendorSha256 = "0c4g1zr0wl118g41hqri0vwvfin39yvgs214w3spw8ggjcj6bzph";
2019-06-13 20:14:16 +01:00
doCheck = false;
2019-06-13 20:14:16 +01:00
buildFlagsArray = [''-ldflags=
-X main.Version=v${version} -s -w
''];
meta = with 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 ];
};
}