2019-08-06 19:48:58 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "terracognita";
|
2019-10-31 04:00:00 +01:00
|
|
|
version = "0.2.0";
|
2019-08-06 19:48:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cycloidio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-31 04:00:00 +01:00
|
|
|
sha256 = "06qw3mycgqkj2f5n6lm9xb2c21xjim2qlwizxsdc5hjrwbasl2q0";
|
2019-08-06 19:48:58 +02:00
|
|
|
};
|
|
|
|
|
2019-10-31 04:00:00 +01:00
|
|
|
modSha256 = "0sjs1dd8z8brxj5wwfrwimnlscy7i6flc4kq4576zwrcjg6pjvkr";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
|
2019-08-06 19:48:58 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|