From e7059c01e119a983e9ecfbac245268dc8f43125c Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Fri, 18 Jun 2021 12:06:52 -0400 Subject: [PATCH] infracost: init at 0.9.1 --- pkgs/tools/misc/infracost/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/misc/infracost/default.nix diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix new file mode 100644 index 000000000000..286bc4cbca28 --- /dev/null +++ b/pkgs/tools/misc/infracost/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchFromGitHub, terraform }: + +buildGoModule rec { + pname = "infracost"; + version = "0.9.1"; + + src = fetchFromGitHub { + owner = "infracost"; + rev = "v${version}"; + repo = "infracost"; + sha256 = "sha256-3dR4NZ1PiMuHNO+xl3zxeBLPOZTLAbJ0VtYJNYpJuXI="; + }; + + vendorSha256 = "sha256-YHewZsIiDPsgJVYwQX/FovlD+UzJflXy/0oglk8ZkKk="; + + checkInputs = [ terraform ]; + checkPhase = "make test"; + + meta = with lib; { + description = "Cloud cost estimates for Terraform in your CLI and pull requests"; + homepage = "https://github.com/infracost/infracost"; + license = [ licenses.asl20 ]; + maintainers = [ maintainers.davegallant ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c853ce2d793..3c58120d4436 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12711,6 +12711,8 @@ in inav-blackbox-tools = callPackage ../tools/misc/inav-blackbox-tools { }; + infracost = callPackage ../tools/misc/infracost { }; + msp430GccSupport = callPackage ../development/misc/msp430/gcc-support.nix { }; msp430Newlib = callPackage ../development/misc/msp430/newlib.nix { };