{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "terracognita"; version = "0.2.0"; src = fetchFromGitHub { owner = "cycloidio"; repo = pname; rev = "v${version}"; sha256 = "06qw3mycgqkj2f5n6lm9xb2c21xjim2qlwizxsdc5hjrwbasl2q0"; }; modSha256 = "0sjs1dd8z8brxj5wwfrwimnlscy7i6flc4kq4576zwrcjg6pjvkr"; buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ]; meta = with lib; { description = "Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration"; homepage = "https://github.com/cycloidio/terracognita"; license = licenses.mit; maintainers = [ maintainers.marsam ]; }; }