nixpkgs/pkgs/development/tools/misc/terracognita/default.nix

27 lines
783 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-08-06 18:48:58 +01:00
buildGoModule rec {
pname = "terracognita";
2020-04-01 20:59:53 +01:00
version = "0.4.0";
2019-08-06 18:48:58 +01:00
src = fetchFromGitHub {
owner = "cycloidio";
repo = pname;
rev = "v${version}";
2020-04-01 20:59:53 +01:00
sha256 = "0ib0p361sxh2qzxccg32pcml4by4mk45abhljwmljwybs34wh5rh";
2019-08-06 18:48:58 +01:00
};
2020-04-01 20:59:53 +01:00
modSha256 = "1cbhm3jwv0z9fh1q8mva56nbsp9rfyjcs03yxrc8ffkvif0gapps";
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
2019-08-06 18:48:58 +01:00
meta = with lib; {
2019-08-06 18:48:58 +01: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 ];
};
}