nixpkgs/pkgs/tools/admin/iamy/default.nix
Fabián Heredia Montiel ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00

26 lines
658 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "iamy";
version = "2.4.0";
src = fetchFromGitHub {
owner = "99designs";
repo = "iamy";
rev = "v${version}";
sha256 = "sha256-oH3ijZaWXI0TdVQN9gzp5ypWzY7OqSxDh7VBoZo42Cs=";
};
vendorHash = "sha256-/IUYM3pTvcHXw8t5MW6JUEWdxegFuQC8zkiySp8VEgE=";
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 ];
};
}