2020-03-21 12:15:00 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
2019-08-06 19:48:58 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "terracognita";
|
2020-01-04 10:20:00 +01:00
|
|
|
version = "0.3.0";
|
2019-08-06 19:48:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cycloidio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-04 10:20:00 +01:00
|
|
|
sha256 = "1d5yi2jxmk04wcz8rjwa5kz9525j8s90d4rj2d4cbgd3lbbk45qq";
|
2019-08-06 19:48:58 +02:00
|
|
|
};
|
|
|
|
|
2020-01-04 10:20:00 +01:00
|
|
|
modSha256 = "0xlhp8pa5g6an10m56g237pixc4h6ay89hkp1ijdz45iyfn9fk91";
|
|
|
|
|
2020-03-21 12:15:00 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-01-04 10:20:00 +01:00
|
|
|
subPackages = [ "." ];
|
2019-10-31 04:00:00 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
|
2019-08-06 19:48:58 +02:00
|
|
|
|
2020-03-21 12:15:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-08-06 19:48:58 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|