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

30 lines
881 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-08-06 19:48:58 +02:00
buildGoModule rec {
pname = "terracognita";
2021-10-28 17:52:59 +02:00
version = "0.7.4";
2019-08-06 19:48:58 +02:00
src = fetchFromGitHub {
owner = "cycloidio";
repo = pname;
rev = "v${version}";
2021-10-28 17:52:59 +02:00
sha256 = "sha256-QaJoHnuzSQXxEuGpui9lyKAjT2wdz4XmMAh5cAOKvBg=";
2019-08-06 19:48:58 +02:00
};
2021-10-28 17:52:59 +02:00
vendorSha256 = "sha256-7LRq1lG3DT1WQ0+78EEeQqCCrx6n6qTCUcYUuKSfvVE=";
doCheck = false;
subPackages = [ "." ];
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
2019-08-06 19:48:58 +02:00
meta = with 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";
2021-07-19 02:00:00 +02:00
changelog = "https://github.com/cycloidio/terracognita/raw/v${version}/CHANGELOG.md";
2019-08-06 19:48:58 +02:00
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}